WordPress.org

Forums

WordPress Related Posts
[resolved] Related posts appearing at the bottom of blog, but above another plugin (6 posts)

  1. 409industries
    Member
    Posted 8 months ago #

    Hello! Love the plugin!

    I have a small problem and am looking for some help getting our related posts positioned correctly on our blog post pages.

    This is an example:

    http://www.dirtyimpreza.com/newsite/david-higgins-breaks-course-record-again-at-mt-washington-hillclimb/

    I have a social media plugin that is appearing above the tags and may not be able to easily move it. Is it possible to edit the related posts plugin to force it to appear right above the "Tags" in a blog post? Ideally I want this sandwiched between the social media share bar and the tags so that the order would be as follows:

    1. Article text
    2. Social Media icons
    3. WordPress Related Posts
    4. Tags
    5. Comment box

    Here's a mockup of what i'm trying to do.

    Screenshot: http://www.dirtyimpreza.com/hosting/imagehosting/related_posts_move_under_so.jpg

    Again, thank you for a great plugin! I have also found a lot of great information in your support forum here, so good job following up on people's requests.

    Hope to hear back soon. Thanks!

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

  2. PetraP
    Member
    Plugin Author

    Posted 8 months ago #

    Hey 409industries,

    thanks for reaching out!
    Unfortunately your theme is not free to use, so I can't test this on my side but the usual steps to make the adjustments you want are:
    1.) Go to "Appearances"-> "Editor"-> and in the upper right corner select your theme (907 if I am not mistaken)-> then on the right side find and click the single.php file. Now in the editor you just need to insert the <?php wp_related_posts()?> to the right place (usually you can tell where the comments/tags part start, so you just put that code above that). You can also copy/paste the content of the single.php file here and we'll figured out where to put it.
    2.) In the plugin settings->"Advanced settings"->"Other settings"-> untick the box next to "Auto Insert Related Posts (or add <?php wp_related_posts()?> to your single post template) " and don't forget to save the changes.

    Please let me know how it goes,
    Petra

  3. 409industries
    Member
    Posted 8 months ago #

    Petra-

    You are awesome! A quick insert of <?php wp_related_posts()?> at the bottom of the single.php blog post section and I got the desired look.

    One small tweak I would like to do:

    Is it possible to add more padding above the "Related Posts Title" portion ? Here is my custom CSS:

    .related_post_title {
    text-align:center;
    }
    ul.related_post {
    display: block !important;
    margin-left:auto; !important;
    margin-right:auto; !important; text-align:center;
    padding: 0 !important;
    position: relative !important
    }
    ul.related_post li {
    }
    ul.related_post li a {
    }
    ul.related_post li img {
    }
    .wp_rp_content {
    width:100%;
    }
  4. PetraP
    Member
    Plugin Author

    Posted 8 months ago #

    Hey,

    thanks for getting back to me and sorry for not replying any sooner!
    Glad to hear we have solved that issue and about that padding/margin - I think if you add this to your CSS code:

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

    ...it should to the trick :)

    Hope this helps, take care and have a nice day,
    Petra

  5. 409industries
    Member
    Posted 8 months ago #

    That was it! Thank you so much for the amazing support. Rating this plugin 5 stars now :-)

  6. PetraP
    Member
    Plugin Author

    Posted 8 months ago #

    Happy to help and big thanks for the review :) Truly appreciate it!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.