WordPress.org

Forums

WordPress Related Posts
[resolved] Moving related post below blog post article (content) (11 posts)

  1. schigk
    Member
    Posted 11 months ago #

    I'm trying to move (re-position) the related post so that it shows up below my share buttons and comments.

    Here's my current layout.
    http://www.matrixmarketinggroup.com/pay-for-performance-public-relations

    Does anyone have detailed instructions? g

    https://wordpress.org/plugins/wordpress-23-related-posts-plugin/

  2. silvoslaf
    Member
    Plugin Author

    Posted 11 months ago #

    Hey George, thanks for reaching out, I'll gladly help!

    The thing is, you will have to manually insert your shortcode to the right place in your theme editor, just below the code that determines your share buttons (which is probably also a plugin, right?) — this is the shortcode you will have to use:

    <?php wp_related_posts()?>

    Also, bare in mind that you'll have to un-tick the box next to "Auto Insert Related Posts" in your plugin settings, so that your related posts won't double up.

    Have you found the right place in your theme's editor for this modification or do you need any help finding it?

    If so, go to your WordPress's Dashboard under the tab 'Appearance'-'Editor', select your theme in the upper-right corner and copy&paste us the code from the content.php file, so that we can take a closer look.

    In either case, I'm looking forward to your reply! Take care & have a nice weekend!

    Best,
    Silvo

  3. kls1
    Member
    Posted 9 months ago #

    hi i have installed wordpress related posts but nothing is showing up on my pages as any different.
    Does this only work for wordpress posts as my content is pages not posts?

    http://clean9detoxdietreviews.com/

    Thanks

  4. silvoslaf
    Member
    Plugin Author

    Posted 9 months ago #

    Hey @kis1, thanks for reaching out, but I'm sorry to say that this is not possible at the moment.

    We are working hard to bring you even more features in the forthcoming months, but I cannot make any promises if the custom post types are going to be included. We're sorry about that!

    I would also strongly encourage you to start a new topic if you have any new questions or inquiries — and I'll do my best to help you out! Take care & have a nice day!

    Best,
    Silvo

  5. Wahlii
    Member
    Posted 2 months ago #

    Firstly thank you so much for this plugin. I really appreciate it :)

    I'm having a similar problem to @schigk in that I'd like to move the Related Posts Widget below my share button and I'm not sure how to do that.

    I understand that I will have to manually insert the <?php wp_related_posts()?> shortcode to the right place in the theme editor below the code that determines the share buttons, I use the sharing option that WordPress offers. I dont use an additional plugin...

    But I'm not sure EXACTLY where to paste the shortcode. You said to paste in content.php but where exactly please? I can't figure it out. :(

    My website is http://www.wahlii.com/

    THANKS IN ADVANCE FOR THE HELP! :)

  6. PetraP
    Member
    Plugin Author

    Posted 1 month ago #

    Hey,

    thanks for reaching out - would it be possible to copy/paste the content of your content.php file here? Or if you can make me a temporary account on your blog, so that I can take a closer look? The thing is that every theme is a bit different, not to mention all of the installed plugins that need to be considered. If you wish you can send those credentials to support[at]zemanta[dot]com.

    Looking forward to your reply,
    Petra

  7. Wahlii
    Member
    Posted 1 month ago #

    Hey Petra! Below is the content of my content.php file. :)

    <?php

    if( is_single() ) { ?>
    <div <?php post_class(); ?>>
    <?php

    // check for Featured Video
    $video = get_post_meta( $post->ID, 'ct_tracks_video_key', true );

    // if has a video, embed it instead of featured image
    if( $video ) {
    echo '<div class="featured-video">';
    echo wp_oembed_get( esc_url( $video ) );
    echo '</div>';
    }
    // otherwise, output the featured image
    elseif(get_theme_mod('premium_layouts_setting') == 'full-width-images' || get_theme_mod('premium_layouts_setting') == 'two-column-images'){
    if (has_post_thumbnail( $post->ID ) ) {
    echo "<div class='featured-image-container'>";
    ct_tracks_featured_image();
    echo "</div>";
    }
    } else {
    ct_tracks_featured_image();
    }
    ?>
    <div class="entry-meta">
    <?php get_template_part('content/post-meta'); ?>
    </div>
    <div class='entry-header'>
    <h1 class='entry-title'><?php the_title(); ?></h1>
    </div>
    <div class="entry-container">
    <div class="entry-content">
    <article>
    <?php the_content(); ?>
    <?php wp_link_pages(array('before' => '<p class="singular-pagination">' . __('Pages:','tracks'), 'after' => '</p>', ) ); ?>
    </article>
    </div>
    <?php get_template_part('sidebar','after-post-content'); ?>
    <div class='entry-meta-bottom'>
    <?php
    if( get_theme_mod('additional_options_further_reading_settings') != 'hide' ) {
    get_template_part('content/further-reading');
    } ?>
    <div class="entry-categories">
    <?php get_template_part('content/category-links'); ?>
    </div>
    <div class="entry-tags">
    <?php get_template_part('content/tag-links'); ?>
    </div>
    </div>
    <?php
    if(get_theme_mod('additional_options_author_meta_settings') != 'hide'){ ?>
    <div class="author-meta">
    <div class="author">
    <?php ct_tracks_profile_image_output(); ?>
    <span><?php
    _e( 'Written by:', 'tracks');
    the_author_posts_link();
    ?>
    </span>
    </div>
    <div class="bio">
    <p><?php the_author_meta( 'description' ); ?></p>
    <?php ct_tracks_author_social_icons(); ?>
    </div>
    </div>
    <?php } ?>
    </div>
    </div>
    <?php
    } else { ?>
    <div <?php post_class(); ?>>
    <?php

    // check for Featured Video
    $video = get_post_meta( $post->ID, 'ct_tracks_video_key', true );

    if( $video ) {

    // if post has video enabled on blog
    if ( get_post_meta( $post->ID, 'ct_tracks_video_display_key', true ) == 'both' ) {
    $video = esc_url($video);
    $video = wp_oembed_get($video);

    echo '<div class="featured-video">';
    echo $video;
    echo '</div>';
    }
    else {
    echo '';
    ct_tracks_featured_image();
    echo '
    ';
    }
    }
    // otherwise output Featured Image
    else {
    echo '';
    ct_tracks_featured_image();
    echo '
    ';
    }
    ?>
    <div class="excerpt-container">
    <?php
    if(get_theme_mod('premium_layouts_setting') == 'full-width-images' || get_theme_mod('premium_layouts_setting') == 'two-column-images'){ ?>
    <div class="content-container">
    <?php } ?>
    <div class="excerpt-meta">
    <?php get_template_part('content/post-meta'); ?>
    </div>
    <div class='excerpt-header'>
    <h1 class='excerpt-title'>
    "><?php the_title(); ?>
    </h1>
    </div>
    <div class='excerpt-content'>
    <article>
    <?php ct_tracks_excerpt(); ?>
    </article>
    </div>
    <?php
    if(get_theme_mod('premium_layouts_setting') == 'full-width-images' || get_theme_mod('premium_layouts_setting') == 'two-column-images'){ ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <?php
    }

  8. Wahlii
    Member
    Posted 1 month ago #

    this is funny...as I posted it on here to you for help, I saw where to add it. :)

    Since that has been resolved...could you help put a bit of space between the sharing icons and the related posts section as they appear on each post? They're pretty close together. What do I do to create that space?
    Thanks for your help. :)

  9. PetraP
    Member
    Plugin Author

    Posted 1 month ago #

    Sure thing - go to plugin settings-> "Advanced settings"-> enable the "Custom CSS" and add the following:

    .wp_rp_wrap .related_post_title
    {
    margin-top: 20px !important;
    }

    Don't forget to save the changes. Let me know how it goes, take care and have a lovely day!

    Petra

  10. Wahlii
    Member
    Posted 1 month ago #

    It worked! Thank you so much Petra! :)

  11. PetraP
    Member
    Plugin Author

    Posted 1 month ago #

    Glad to hear it worked! :)

    Take care and enjoy the weekend,
    Petra

Reply

You must log in to post.

About this Plugin

  • WordPress Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic