• Resolved emanuel-sferios

    (@emanuel-sferios)


    Hi. I am using two plugins that create custom post types. One is a calendar system, and the other is an art portfolio system. Each of these creates custom post types (“events” and “art” respectively).

    How do I set CRP in order NOT to display on those custom post types?

    Thanks, and thanks for an excellent plugin!

    EManuel

    http://ww.wp.xz.cn/plugins/contextual-related-posts/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ajay

    (@ajay)

    Currently, you don’t have a quick way to disable this. If you don’t have too many post numbers, you can put the post IDs of your custom post types in “Exclude display of related posts on these posts” under Output Options.

    The other option is to use the manual install by editing your theme files.

    <?php if(function_exists('echo_ald_crp')) echo_ald_crp(); ?>

    I’ll be adding an option to remove the display off custom post types in a future version.

    Thread Starter emanuel-sferios

    (@emanuel-sferios)

    I’ll wait for the upgrade version. There’s too many posts for the manual solution. Thanks again!

    Thread Starter emanuel-sferios

    (@emanuel-sferios)

    I “solved” this problem by using a display:none css tag. Can’t believe I didn’t think of that earlier.

    Plugin Author Ajay

    (@ajay)

    That was definitely a smart solution! Can you share the code you used in case other users have a similar issue (at least until I add the option)?

    Thread Starter emanuel-sferios

    (@emanuel-sferios)

    Sure. It’s pretty simple. I have a post type class called “calendar1” and so this line removes crp:

    .calendar1 .crp_related { display:none; }

    Emanuel

    Plugin Author Ajay

    (@ajay)

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Removing CRP from custom post types’ is closed to new replies.