Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter freaksauce

    (@freaksauce)

    ok that didn’t work before I’ll try again

    $data['menu'] = sprintf('<a href="'.get_admin_url(false,'admin.php').'?page=cctm&a=create_post_type" class="button">%s</a>', __('Create Content Type', CCTM_TXTDOMAIN) );

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Weird man… it looks like maybe you had a partial upload here or something. I continue to think this is an environment issue. Before going too nuts here, I’d go into your wp-content/plugins directory and completely delete the custom-content-type-manager folder. Then download it again and unzip it to the plugins folder — I think you need to make 110% sure you have the latest plugin files.

    The way the admin pages are built are that each controller file sets a few variables in the $data array, e.g. $data[‘menu’], $data[‘page_title’], then this all gets printed in the custom-content-type-manager/views/templates/default.php file — that’s the template for all manager pages. Right around line 58 in the detault.php file, you should see that the variable for the menu is printed:

    <div id="cctm_nav"><?php print $data['menu']; ?></div>

    See how that works? The controller file sets the $data[‘menu’] variable, and the default.php file prints it. It’s a pretty simple setup, and it’s working on all the builds I know of — it’s a fundamental part of the plugin.

    Thread Starter freaksauce

    (@freaksauce)

    Yeah weird, I just did a fresh install of WordPress, added your plugin through the “add new” button in WP so I have the latest files and it’s happened again. Must be something on my MAMP setup?!

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    I use MAMP, and I have problems with the WP plugin manager — I don’t know why. But I always have to go to the plugin’s page, download the zip file, and manually extract it to wp-content/plugins.

    Hope that helps.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Create Content Type button not showing’ is closed to new replies.