Support » Plugin: Contextual Related Posts » Related Posts Showing withint Article Body

  • Resolved aliqamarvpn



    I Installed the plugin and it really is great, prior to it I was using YARP but now switched to CRP because of my custom posts support and date of the posts need (I think these two are the main features that make Contextual stand out from may others).

    But I’ve an issue being, the related posts get to show right below where the content of my post ends – within the post body (when I view page source, all of the “<div id=”crp_related” class=”crp_related”>” code is within the article body). But I want the related posts show below the post, after/below the sharing buttons I’ve below my posts. Is there any suggestion to achieve it please?

    I look forward towards your kind suggestions soon!

    Thanks in advance and God bless,

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



    You have two options on this one:

    1. Use the Manual Install by editting your theme files. Information of this is in the FAQ

    2. Try something like this under functions.php. Backup your files before doing this

    remove_filter('the_content', 'ald_crp_content');
    add_filter('the_content', 'ald_crp_content',99);

    The number 99 controls at what priority the plugin should ideally kick in. The default is 10 for most plugins. So if your sharing buttons have a priority of 10, then something higher than that will display after the sharing plugins.

    Hey, me too, really need to do it.

    Plugin Author Ajay


    djforce have you tried the options above?

    Hi Ajay, I tried the above provided fixes but even though it enabled me to place CRPs in my desired place, yet it also shows them within its default place (again within the article body). So it’s making the posts to show twice… Any idea please?

    hi, I tried to fix the functions.php file but it did not help …

    Plugin Author Ajay


    aliqamarvpn, Can you try this test: Remove the second line I asked you to add in? i.e only keep remove_filter('the_content', 'ald_crp_content');
    What’s the result of this?

    djforce, am assuming you are editting the themes function.php file. Also, are you having the same issue as Ali?

    if I put it remove_filter (‘the_content’, ‘ald_crp_content’);
    Block disappears from all pages

    Plugin Author Ajay


    Can you try adding this to your functions.php file

    // Content function with user defined filter
    remove_filter('the_content', 'ald_crp_content');
    add_action( 'template_redirect', 'crp_content_prepare_filter' );
    function crp_content_prepare_filter() {
      add_filter( 'the_content', 'ald_crp_content', 99 );

    It also does not help …
    Output of the block does not fall below the other blocks …
    You can see this here:
    or here

    Группа психологического общения и поддержки «Открытое пространство»

    Plugin Author Ajay


    I checked out the second link. The related posts are at the bottom of your post. What other blocks are you thinking about on that page that the output should come after?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Related Posts Showing withint Article Body’ is closed to new replies.