Custom related posts via shortcode

Home Forums Product Support Forums Related Posts Pro for WordPress Support Custom related posts via shortcode

This topic contains 14 replies, has 2 voices, and was last updated by  Mark1501 2 months, 3 weeks ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #19233

    Mark1501
    Participant

    Hey guys, I purchased the related posts pro plugin. I did read the documentation. Still I failed to find the way how to do this

    For each of my posts I’d like to include only custom posts of mine (for which I have URL’s) and do so with a SHORTCODE. For each post of mine I already have related articles with URL’s that now I’d like to include into Relared Posts Pro.

    If that is not possible, than at the very least I’d like to be able to define on a post level to include related posts with a specific tag.

    How can I do that?

    Thanks Mark

    #19241

    Ernest Marcinko
    Keymaster

    Hi Mark,

    To specify custom content for each post, please use the post metabox: http://wp-dreams.com/demo/related-posts-pro/docs/#genearal_behaviour_override_global

    There you can define which posts do you want to display on that certain post. The shortcode unfortunately does not take any arguments to override which posts it should display.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19264

    Mark1501
    Participant

    Hey Ernest, thank you. I’m going to try do that. How about this: can I specify custom content for each post by simply naming the tags. That would be ideal scenario for me as I already have each and every post equipped with tags? See picture. Cheers, Mark

    Attachments:
    You must be logged in to view attached files.
    #19286

    Ernest Marcinko
    Keymaster

    Hi!

    That is not possible, but you can try the matching tags option here: https://i.imgur.com/Mk0T2He.png
    It will basically tell the plugin to prefer posts from the same tags first.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19308

    Mark1501
    Participant

    Hi Ernest. Thank you. I did all of the suggested.

    – I followed your documentation and your suggestions above.
    – For approx half of the post I have specified custom content for each post, using the post metabox: http://wp-dreams.com/demo/related-posts-pro/docs/#genearal_behaviour_override_global. Here’s one example: https://www.feelgoodrituals.com/what-do-you-want-from-your-relationship/
    – For the rest of the blog posts I have followed your second suggestion. Using the setting https://i.imgur.com/Mk0T2He.png (as recommended
    by yourself), I told the plugin to prefer posts from the same tags first. Example would be: https://www.feelgoodrituals.com/unconscious-mind-
    affecting-your-marriage/ which doesn’t have any custom blog-post-level settings and simply draws from global settings.

    Here’s my problem.

    1) The plugin won’t show any related posts under the blog posts whatsoever.
    2) The only way it will show something is when I turn on the feature “Show on single content pages?” to YES. But, in that case, I get thumbnaisl, filled with the text of the blog post. That’s strange.

    I guess some settings are wrong but I am circling around to find what.
    I’m attaching the current settings. If needed I can also supply credentials to access the backend within my wordpress.

    Currently, Show the plugin under content is temporarily OFF, as it doesn’t work anyway.

    Thanks, Marko

    Attachments:
    You must be logged in to view attached files.
    #19313

    Ernest Marcinko
    Keymaster

    Hi,

    The Show on single content pages? should be enabled as well, otherwise it won’t show up on the blog post pages. Single content page means, when a post type page is displayed, in this case the post itself.

    If there is a visual problem with the output then, make sure to clear the site cache, as well as the browser cache. If possible, I would like to take a look at that directly, to see if it’s a stylesheet issue or something else entirely. Thank you!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19314

    Mark1501
    Participant

    Thank you Ernest. Would you want to have a look if I give you the temporary credentials?

    Should I put it right in-here and mark set this conversation as “private”?

    Cheers, Marko

    #19315

    Ernest Marcinko
    Keymaster

    Hi Marko,

    Yes, you can do that, or you can also edit your initial post and place it there. Whichever you prefer.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19316

    Mark1501
    Participant
    You cannot access this content.
    #19317

    Mark1501
    Participant

    Just so you know, the “Show the plugin under content” is temporarily still oFF. Cheers, Marko

    #19318

    Ernest Marcinko
    Keymaster

    Thank you, I have found the issue. Under the Content Options panel, the post content was chosen as the title field, thus the long texts. I have switched it back to ‘Post title’, now the layout should be okay: https://i.imgur.com/Mt4Smwz.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19319

    Mark1501
    Participant

    Thank you Ernest. It looks like things are working now. I see it would be better to set the maximum related posts from 6 to 8. It will look better. Thanks for your support. Cheers, Mark

    #19320

    Mark1501
    Participant

    By the way Ernest, last thing. Now, that I have the Related Posts PRO working (thank you again for your support), Do you know how can I remove
    the wordpress native buttons for related (next) posts? See picture attached. Thnx, Mark

    Attachments:
    You must be logged in to view attached files.
    #19322

    Ernest Marcinko
    Keymaster

    You are welcome 🙂

    Those are either hard-coded into the theme single.php (or corresponing) file, or with a custom function appended after the content. More likely hard-coded. I suggest asking the theme author, he will know for sure.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #19324

    Mark1501
    Participant

    Thank you! Have a great week! Cheers, Mark

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.