• Resolved louisgossify

    (@louisgossify)


    I’m uploaded a number of documents which I am trying to display in different areas of my website.

    Using the Simple Taxonomy plugin I have created some custom fields by which to filter my documents: ims_section & ims_type

    However when I use the shortcode [documents ims_section-“001man”] for example, it continues to display all documents without filtering.

    Could you please tell me how to only display documents with the required taxonomies?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor nwjames

    (@nwjames)

    @louisgossify
    There is a simple way to ensure that you have the correct information entered.

    This shortcode simply creates a WP Query and displays the result to you.

    So you can create one that works in another, standard, way and once you confirm it works enter it into the shortcode.

    If you go to the All Documents screen, you’ see that its web address is like:
    https://example.com/wp-admin/edit.php?post_type=document

    Now modify it with your taxonomy query field:
    https://example.com/wp-admin/edit.php?post_type=document&ims_section-“001man”

    I don’t expect this to work as is, because you have a minus character, and not an equals one. Change it to ims_section=“001man” to see if better.

    Once you have a working example, copy/paste that into your documents shortcode.

    You can have both taxonomies as selectors. Separate them with spaces in the shortcode.

    Hope that is of use,
    Neil James

    [If this answers your query, please can you mark it resolved.]

    Thread Starter louisgossify

    (@louisgossify)

    Thank you Neil, this is now working.

    I’ll mark as resolved, I have another query which I will create a new post for.

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

The topic ‘Shortcode Not Working’ is closed to new replies.