• staalegismervik

    (@staalegismervik)


    I’m using the theme Flatsome (an UX-theme) and have portfolio enabled. How can I list all entries of one portfolio category? I can’t seem to find a way.

    The link goes to my portfolio-page showing every category, but I’d like to show only one. Is it possible?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Unfortunately, due to the theme being commercial, and the lack of public-facing documentation I cannot advise well.

    The best way, if you can, is to use the WordPress Block Editor’s features to configure the listing by inserting an A-Z Listing block instead of a Shortcode block. This should show you the available post type names and taxonomy names (your portfolio categories should be a taxonomy).

    However, the concept for configuring the shortcode, should you need it, is:

    • You need to find out the post-type name of the portfolio posts that WordPress uses internally – i.e. not the human-readable name in the UI (maybe it’s portfolio?) – if the portfolio post list page is using the default WordPress UI then the URL to the post list will be like https://a-z-listing.com/wp-admin/edit.php?post_type=portfolio where the post type name is after post_type= at the end of the address.
    • You also need to find out the taxonomy name of your portfolio categories that WordPress uses internally – i.e. not the human-readable name in the UI (maybe it’s portfolio_cat?) – if the portfolio categories UI is using the default WordPress UI then the URL to the UI will be like https://a-z-listing.com/wp-admin/edit-tags.php?taxonomy=portfolio_cat where the name is after taxonomy= at the end of the address.
    • You finally need to find out the term slug of the portfolio category you wish to filter the display to – if the portfolio categories UI is using the default WordPRess UI then on the list of terms page there will be a column with Slug as the heading. You want the value from this column

    Once you have these names you need to replace them in the following shortcode:

    [a-z-listing display="posts" post-type="portfolio" taxonomy="portfolio_cat" terms="category_slug"]
    

    Here, I’ve put the placeholder names portfolio, portfolio_cat, and category_slug. These should be replaced to the three items you discovered above.

Viewing 1 replies (of 1 total)
  • The topic ‘Show only portfolio pages’ is closed to new replies.