WordPress.org

Support

Support » Plugins and Hacks » Related Posts by Taxonomy » [Resolved] Shortcode not working on custom post type

[Resolved] Shortcode not working on custom post type

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author keesiemeijer

    @keesiemeijer

    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?
    Related Posts by Taxonomy

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Shortcode not working on custom post type’ is closed to new replies.
Skip to toolbar