• Hello, first I would like to thanks for the great theme!
    As I wish to improve the navigation, I need to put “Related posts” after the first paragraph on each post.
    How could I do that?
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello tw8sw8dw8,

    You could try to move the following PHP code from your

    single.php

    at about line 49 somewhere in the beginning of the entry themeform div.

    <?php if ( ot_get_option( 'related-posts' ) != '1' ) { get_template_part('inc/related-posts'); } ?>

    Don’t forget to make a backup, and please use a child theme.

    Thread Starter tw8sw8dw8

    (@tw8sw8dw8)

    Hello FadingMusic,
    When I copy or move this line from single.php it is only possible to put related posts above content, but I need to do after the first paragraph.
    Is this possible?

    @tw8sw8dw8 – Check this article: https://premium.wpmudev.org/blog/post-page-tweaks/. About half way down there is a section titled “Insert Content Between Paragraphs”. You might be able to use that function and use the related-posts line above to set the $content_to_insert.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Related post into the content’ is closed to new replies.