• Resolved cioppino

    (@cioppino)


    Hi, i created my pod, then i added all my categories (e.g. nations) and my subcategories (e.g. cities), than i put on my primary menu the categories, but…….nothing happened! because when i click on the name of the category on the menu i’m directed to a page that shows this message:

    Nothing Found
    It seems we can’t find what you’re looking for. Perhaps searching can help.

    Search

    How can i fix these links in my menu? The perfect option is to have NATION like fixed categories and CITIES shown down only if a pods post with that subcategory (city) is present, if not present nothing has to be shown.

    Thanks for the help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Did you associate that taxonomy (Nations with Cities) to your post type with those posts? Or did you create a new taxonomy with those nations and cities?

    If there are no posts associated with the taxonomy terms, you will get nothing in response to your query.

    You can associate the taxonomy to a post-type in the Advanced Options tab for the Taxonomy (at the bottom of the screen) or you can associate a post-type to an existing taxonomy by going into the Advanced Options tab for that post-type and going to the bottom of the screen and associating the Taxonomy. (https://docs.pods.io/creating-editing-pods/creating-a-custom-taxonomy/associate-taxonomy-with-custom-post-type/)

    When you’re in your Taxonomy screen showing your nations and cities, you should see a count by the list of terms. That tells you how many posts are associated to that term in that taxonomy. We don’t use the term category and subcategory because that confuses it with the built-in ‘Category’ from WordPress. They are ‘taxonomies’ and ‘terms’. That’s your primary test to see if things are working properly by looking at the terms in your taxonomy and clicking the ‘view’ link from there.

    If you’re still having difficulties, please join our Slack Chat at https://pods.io/chat/ and I can help point you in the right direction.

    Thread Starter cioppino

    (@cioppino)

    Really i have created Categories into the “my pods” tab and i haven’t created taxonomies. So i try and if something will go wrong i write another post or i try to join the chat

    Thanks

    Plugin Contributor Jim True

    (@jimtrue)

    Okay, so you’re using the built-in WordPress ‘Category’ and associated it to the post-type you’ve created in Pods? WordPress deliberately excludes ALL post-types except for ‘post’ from their Category displays. You have to use PHP added to your functions.php to override this or use the plugin https://www.ads-software.com/plugins/custom-post-type-taxonomy-archives/ to automatically allow Category & Tags to show those posts in their archive. (this is referenced in this bug report: https://github.com/pods-framework/pods/issues/3449)

    Sorry to go all semantic with you, but understanding what you’re doing helps. That’s why we often ask folks to join the Slack Chat, because it’s easier to point them specifically to the part of the screen or have them drop a screenshot of what they’re seeing into the chat.

    Thread Starter cioppino

    (@cioppino)

    It’s okay. I used taxonomies (i created them with the same logic of the categories) instead of built-in WordPress Category and it seems okay now.
    Thanks for your quick reply and, in general, thanks for helping “normal” people to create websites very much difficult than their coding knowledges allow.

    Stay tuned for other eventual answer ??

    Plugin Contributor Jim True

    (@jimtrue)

    No worries. That often is the best solution: to not use the built-in Categories/Tags. Custom Taxonomies just work then. There are also Custom Post Type Widgets that make the built-in WordPress widgets that work on ‘posts’ and ‘categories’ and ‘tags’, work on Custom Post Types and Custom Taxonomy.

    Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pods categories not linked in menu’ is closed to new replies.