Closed brunocascio closed 10 years ago
Maybe the problem is here
function setup_instances()
{
// implement our default instance if appropriate
if( !defined( 'ATTACHMENTS_DEFAULT_INSTANCE') )
$this->register();
// facilitate user-defined instance registration
do_action( 'attachments_register', $this );
}
You need to define ATTACHMENTS_DEFAULT_INSTANCE
as true
I set to define( 'ATTACHMENTS_DEFAULT_INSTANCE', true );
, but doesn't work.
Whoops sorry you were correct with define( 'ATTACHMENTS_DEFAULT_INSTANCE', false );
, I apologize. Is the default instance showing up everywhere, or just the one you created?
Yes... is a default instance :/ because i defined the attachments, only in a custom post type, previously created...
There must be another issue, where in your wp-config did you add the define? Try adding it to the top if you added it to the bottom.
On Feb 4, 2014, at 7:15 PM, Bruno notifications@github.com wrote:
Yes... is a default instance :/ because i defined the attachments, only in a custom post type, previously created...
— Reply to this email directly or view it on GitHub.
Yesss! I work! I add in first line of wp-config, Thanks!!! :) :+1:
Awesome, enjoy Attachments!
Hi!
I defined in wp-config:
functions.php
But, the attachments is visible in All posts/pages.
My wordpress version is 3.8.1