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

    (@ajay)

    You could try to do the manual install of CRP by using echo_crp() by editing your theme. You can disable the Automatically add option in the settings page

    Thread Starter demonjax

    (@demonjax)

    I was thinking maybe you could help me write a function or some css code to conditionally hide the output of CRP if the showposts class is being called on the page.

    Plugin Author Ajay

    (@ajay)

    You could do CSS code. This could work – you will need to add it to your theme’s CSS or in Customizer.

    #tab-mobility-and-movement-articles .crp_related {
    display:none
    }
    

    However, this would still be pulling the posts from the DB which isn’t ideal – that being said if you have the cache enabled within CRP then it will be fast

    Thread Starter demonjax

    (@demonjax)

    That won’t really work, because I’d have to go through every page and post on the website and manually insert this css code. So what I would need is some css code to use that will hide CRP code if it’s within a showpost class.

    Plugin Author Ajay

    (@ajay)

    That should work if you add it to the header.php of your site or use a plugin like Add to All. I think you can add that in Customizer as well.

    I’m not sure how or when the showpost class is being pulled as I’m not familiar with that plugin.

    One potential option is to add a filter function to get_crp to return false if showposts is being pulled in.

    • This reply was modified 7 years ago by Ajay.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Conflict with WPSHOW Posts’ is closed to new replies.