• Resolved adminmas

    (@adminmas)


    Hi,
    I’m a newbie at this and apologize if this seems redundant and annoying, but i need assistance in customizing related posts on a website, in case it is possible.
    what i’m trying to do is customize related posts to work in different categories which correspond to specific pages, so posts with category x1 would appear on a page called x1.

    1) Is this possible through categories, or would i have to use types?

    2) is this possible through shortcodes on the specific pages, or would i have to add the code to the page template? (while the page template is shared by all the pages)

    many thanks for any response or referral.

    https://wordpress.org/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ryan C.

    (@ryancowles)

    First, there’s no need to apologize! These forums are a perfectly fine place for questions like yours 🙂

    It sounds like you are looking for some advanced customizations for Related Posts. I’m afraid there isn’t an option out-of-the-box that will allow you to accomplish what you’re trying to do. However, if you are comfortable working with (or learning about) some code, then you might be able to put together a solution.

    I would start here:
    http://jetpack.me/support/customize-related-posts/#exclude-cats

    You could reverse some of the logic in the above example, and use conditionals to display the relevant Related Posts. You can learn some more about conditional tags here:
    https://codex.wordpress.org/Conditional_Tags

    I hope this helps to point you in the right direction!

    Thread Starter adminmas

    (@adminmas)

    Thanks for your response Ryan

    Since my knowledge of code is very limited, i had to find a simpler way.
    I ended up installing a plugin which enables a shortcode to display posts, then use the tag function within the shortcode to decide which posts I want to appear on which page, thereby sacrificing design & layout by giving up on related posts :/

    Plugin Contributor Ryan C.

    (@ryancowles)

    I completely understand! I’m glad to hear that you found a solution. Please don’t hesitate to let us know if you ever need some help with Jetpack!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customize related posts with shortcode’ is closed to new replies.