WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Taxonomy
[resolved] Shortcode not working on custom post type (3 posts)

  1. Foreverbarcelona
    Member
    Posted 5 months ago #

    Hi!

    I'd love to use your plugin, but I need it to work in 2 different contexts:

    1. Sidebar widget. This works fine both in my blog posts and my "tours" custom post type (but I only need it as a sidebar widget for my blog, unfortunately).

    2. Shortcode added manually at the end of my "tours" custom post type. Unfortunately, this setting is not working: it doesn't display anything at all.

    Example: https://www.foreverbarcelona.com/tours/11580/
    (see how it finds related posts in the sidebar, but not as a shortcode within the post)

    Any ideas to solve that would be highly appreciated. Thank you!

    Marta

    https://wordpress.org/plugins/related-posts-by-taxonomy/

  2. keesiemeijer
    moderator
    Plugin Author

    Posted 5 months ago #

    What are the settings for the shortcode? Are you using a different plugin for related posts after the post content? Does it work if you just use this:

    [related_posts_by_tax]

    Are you using a custom query for your blog page?
    http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#wp-query

  3. Foreverbarcelona
    Member
    Posted 5 months ago #

    Oups, forget about it.
    Now it's working! (don't ask me how... but who cares if it works, isn't it?) ;)

    Thanks anyway,

    Marta

Reply

You must log in to post.

About this Plugin

About this Topic