Based on the code in your question, I can only see one problem.
- under “Show all category links”, you’ve got an “endwhile”, but no “while”, and an “endif”, but no “if”. Delete both the “endwhile” and “endif” and the code runs fine.
The “Projects page code” works fine. I can’t reproduce your specific custom fields but then you didn’t flag them as an issue, so that shouldn’t be a problem. FWIW, “showposts” has been deprecated in favour of “posts_per_page” but it still works.
Related Posts:
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Gutenberg editor add a custom category as wrapper for custom blocks
- Rewrite rule page url with category
- Different template for subcategories
- WP_Query not looking at child category
- Deleting default category in wordpress
- Most recent post from every category/taxonomy but sorted by date
- Category Archive, list subcategories of each post
- Disable pagination only for specific category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Script to duplicate categories as tags
- Check if post belongs to any category
- How to add categories to products in woocommerce programatically? [closed]
- Is there a plugin that will completely remove the category system?
- How to sort categories by id in wordpress admin
- How to override Category rendering mechanism
- Remove Parent Category from Child Category URL
- Multisite – create a category in specific site
- How do you remove display of WooCommerce product category on single product page?
- Allow users to post to a certain category
- Show recent posts in menu?
- Do I have to use categories?
- get_the_category and echo out link to child-most/deepest category
- Categorising posts/pages into years published
- Convert the default sub-category dashes to bullets or any other characters
- Display category description instead of “nothing found” page
- Link Attachment Image to Category
- Modify WordPress SQL Query to pull from within a category
- How can i insert term in a specific language of Polylang?
- How to retrieve more posts from a custom post type that are in the same category as the current post
- Custom User-Created RSS Feed
- query cat orderby and order not working
- WooCommerce – How to show specific category first-rest of products-specific category last
- Multiple URL’s based on category for one post
- WordPress category check
- How can I improve this taxonomy treating approach?
- Exclude categories from wp_list_categories by category slug
- How to show more than 5 posts of the category?
- Can’t delete a category in WordPress
- Dropdown Categories used in form shows no results when all is selected
- Nicer URL for viewing category of posts?
- Get Categories Where Taxonomy Equals ‘n’
- Odd results in get_the_terms vs wp_get_post_terms
- How to access deleted term inside delete_product_cat action
- get full category structure by post id
- Remove Archive | from Categories
- Showing Categories for Page Edit – without plugin
- Difference between wp_list_categories and get_categories
- Using categories with pages
- Show next post in same category but start from the latest
- Only first category!
- How could I write a get_categories_by_year() function?
- How to add icon over specific thumb
- add_settings_field (exclude categories->reading) wp_category_checklist
- Retrieve post tags from from main wp_query
- Listing Post Categories on Home Page
- Can I define multiple paginations on a single page?
- Echo Category Nicename
- Explode() expects a string
- How to add meta description, keywords, custom title to a category template
- User level categories
- Exclude category from drop down list form
- How to set the same base url for two different taxonomies?
- Programmatically Create Category and sub Category and sub sub Category
- Parent Category and Subcategory default text generated with category
- How to create a table with counts of category combinations?
- How to get the_category(‘, ‘) with link “title” attribute
- product_cat image url from database
- How to test if the post is in a primary category
- How to get the term id inside the start lvl method of category walker?
- Multiple if statements with else for get_the_category [closed]
- Most efficient way to display current post subcategories?
- Using a template page parent breaks page
- How to Query the Top 5 Posts of a specific category?
- Setting category for post as default
- How to add a post with new Taxonomy without assigning to default category?
- Query post only from categories that have subcategories
- How to get the link of all categories
- foreach,having wp_query inside, breaks after showing one result
- Display a category name automatically using code in the functions.php file
- How to create default categories in new installs?
- Check if value is a custom taxonomy category name
- Tracking multiple tags or categories
- 2 loops in archive.php (one for each category)
- How to load jquery tag-it plugin into admin?
- Include Category Description in search result
- not empty categories don’t show in menu [closed]
- Show parent-child relationship for categories in the wordpress admin
- How to assign different categories to pages in wordpress?
- All post of child category not in top category
- How to add a tag above a category post that displays the category name in WordPress
- Woocommerce – Display product category of product in Orders page
- How to show video from wp option value?
- Changing Woocommerce categories programatically
- How to link ACF relationship field to the new Query block in Full Site Editing
- Order Categories by Character Count
- Replace category titles inside RSS feed
- How to get specific number of category post on a page or category page?
- Display different sidebar based on search results from one category
- Adding category to existing post (uploaded file)