• Resolved CertifiedSammy

    (@trueinternetworld)


    Hello,

    I recently tried your theme and it looks good. However, I can’t seem to find a working PHP code to use in making the plugin appear in a specfic location in the single file.

    The code I stumbled on in the documentation page, breaks the website thus displaying error 500.

    Please, can you guide me on how to make the code display on a particular location on the single file rather than automatically showing beneath post content.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for reaching out to us.

    To display the related posts in a specific location, you would first need to disable it from being automatically displayed below content. To do this, please add the following code to the end of the “functions.php” file located inside your active theme folder.

    add_filter( 'rp4wp_append_content', '__return_false' );

    Also, to add related posts to a specific location, please add the following code to your theme code responsible for displaying content of a post.

    <?php rp4wp_children(); ?>

    I hope that answers your query. Let us know if you have any further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Manually Display related posts in single file’ is closed to new replies.