• Resolved Stegosource

    (@stegosource)


    Excellent plugin, and I really love the shortode builder. However, I found a bug in it.

    The Taxonomy dropdown adds three parameters like so:
    taxonomy=”cpt-slugtax-slug”
    taxonomy_terms=””
    taxonomy_operator=”IN”

    The problem is that the first parameter, ‘taxonomy’ includes the taxonomy slug AND the post type slug. This should only include the taxonomy slug like so:
    taxonomy=”tax-slug”

    Just a simple JS fix I believe.

    https://wordpress.org/plugins/ajax-load-more/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi Stegosource,
    I’ve never seen this one before.
    Just tested 3 different installs and can’t reproduce this.

    Thread Starter Stegosource

    (@stegosource)

    Really? That’s weird.

    Well Im using CPT UI to create a custom post type and it’s custom taxonomy. They are “story-of-progress” and “focus-area”.

    Going down the shortcode builder, I select the ‘story-of-progress’ and deselet ‘post’. Then select the taxonomy ‘focus-area’.

    Here is where the problem occurs. I see:
    [ajax_load_more
    post_type=”story-of-impact”
    taxonomy=”stories-of-impactfocus-area”
    taxonomy_terms=””
    taxonomy_operator=”IN”]

    It MIGHT have to do with the fact that my custom post type has a custom rewrite slug: stories-of-impact/story. I dont know.

    Another weird bug is that when I have selected the ‘focus-area’ taxonomy, it says there are no terms even though there are.

    I was able to get around it, so not a big deal. I hope this was helpful, but if not, no worries.

    Plugin Author Darren Cooney

    (@dcooney)

    Ok, thanks.
    I’ll mark as resolved for now.

    fwiw. I use CPT UI on a dev site and don’t have the issue there either. weird.

    Thread Starter Stegosource

    (@stegosource)

    Well Im not sure I would call it resolved. If you look at the shortcode above, the taxonomy does not get built right. It comes out:

    taxonomy=”stories-of-impactfocus-area”

    When it should be:

    taxonomy=”focus-area”

    But if there is nothing that can be done, there is nothing that can be done. Thanks for looking anyway.

    Plugin Author Darren Cooney

    (@dcooney)

    I can’t replicate this issue in 3 different environments.
    Can you let me know the exact steps to create the problem?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Issue with shortcode builder.’ is closed to new replies.