WordPress.org

Ready to get started?Download WordPress

Forums

All In One Schema.org Rich Snippets
[resolved] Plugin not working with custom posts (4 posts)

  1. Santosh
    Member
    Posted 1 year ago #

    I have installed http://www.elegantthemes.com/demo/?theme=Explorable theme which uses custom posts. I want to know what picea of code should I add so that this plugin will work on custom posts.

    http://wordpress.org/extend/plugins/all-in-one-schemaorg-rich-snippets/

  2. Nitin Yawalkar
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Santosh,

    First of all, thanks for using our plugin.

    You can enable the configuration panel on custom post types, follow these instructions:

    • Go to edit plugins and locate the meta-boxes.php file
    • Register a new variable after $prefix : $post_types=get_post_types('','names');
    • Now replace this line -
      'pages' => array( 'post','page'), // Post type

      With this one -

      'pages' => $post_types,//array( 'post','page'), // Post type

    This will enable the rich snippets configuration panel on each post type.

  3. Sujay
    Member
    Plugin Author

    Posted 1 year ago #

    Santosh,

    Hope Nitin solved your query. Should you have any further questions, please feel free to post your question.

    Regards,
    Sujay

  4. Santosh
    Member
    Posted 1 year ago #

    Thanks Nitin and Sujay I will fix it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.