I don’t see anything that would cause the_content() to display in your code. Chances are, the template file you are editing is NOT the one being used on the page/archive you are checking.
Add this to the top of your template files…
<!-- Template: <?php echo __file__; ?> -->
Now, in your web browser view source and locate “Template:” – which will tell you which template file(s) are being loaded for the current page. From there, you will be able to figure out which template file you should be working on. It might be the wrong file, or it might be the right file in the wrong theme.
Related Posts:
- Inject post (from specific category) between posts in Loop
- User Defined order on get_categories?
- Custom Loop through category menu to include sub categories
- How to exclude specific category from the get_the_category(); array
- Filter Select results based on selection
- Alert Bar section within WP loop is displaying even though there are no posts
- Display category name only once inside loop
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- How do I remove a category from a wordpress loop>
- How to get the last category name of a child category?
- How to get current post category details inside “loop”?
- Problem with custom loop and wp_list_pluck [closed]
- Echoing a CSS class based on category of post in a list
- Do not duplicate posts with multiple categories in multiple loops
- Return to the beginning of the results of a for loop
- Exclude category and post from loop in custom category.php
- Error trying import one category on page
- Build a content and excerpt grid loop with paging and options for # of posts
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- How to loop over custom fields in a page template?
- How to Remove Parents Category Permalink from Posts
- Looking to exclude blog posts from category Previous/Next buttons
- Store loop into array
- Looping through WP_Post Object
- Show Custom Taxonomy Title
- spliting posts into two columns
- How to speed up a wordpress function with multiple loops?
- How to Display a Single Post Excerpt
- $wpdb->flush(); breaks the loop
- combine Code 1 with Code 2
- Changing layout with wp_customise
- Proper syntax or method for keeping url in modified isotope / category links
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- get author_name from queried post
- get_template_part based upon post’s category
- Different post styles depending on category
- Load wordpress content in other domain
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- post thumbnail, conditions, else wont work
- Define specific category name in PHP
- Category title output before opening title tag
- Include Parent Term in wp_list_categories
- How to avoid duplicates when creating recent network posts
- Why in my theme I can’t see all the statics content under the posts?
- How to unlink all posts from tracking same amount of views
- Why my loop isn’t working? [closed]
- How to get category name or ID by post?
- How to hide posts of a specific custom category in WordPress?
- Add new post in existing categories using wp_insert_post
- How to change logo by category
- Listing titles and custom fields of entries within subcategories
- Output category list inside array
- How to wrap every 3 posts in a div (and close the last div too) [closed]
- Dividing the loop to style post differently
- Define category ID using get_post_meta
- First post article different on Archives template
- How to add title attribute to archive items
- How To Pass Array To get_the_category_by_ID() and Get An Array Back?
- Strip from or something better?
- Problem in replacing the_content with the_excerpt()
- I need to display posts in subcategory beside posts in main category
- Order category posts by last word of custom field
- Change category thumbnail size
- Get nice name of category from slug (remove dashes of category)
- in_array not working on dev server but works on localhost
- How to Create Carousel Indicators in PHP Loop using wp_get_attachment_url function?
- Get title of page containing post grid within the posts
- Is there anyway I can call the year once?
- Display all categories including sub categories under a list ul
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Polylang and template files
- cURL needing to loop through all “next_page”
- Display page content in different sections – based on page break block?
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Latest posts feed with a specific post always first
- Show the subcategory name based on current product
- Show subcategory name selected in specific category woocoommerce
- How can I get my pagination loop to display the correct number of total pages?
- Get current_post in reverse order with pagination
- How fix error in the WordPress loop?
- PHP get_category() function redeclared
- Efficient way of querying for a “fallback” post?
- Div Missing In Custom Loop Query
- Loop 1 user randomly
- Create a hierarchical loop at predefined markup requirements
- Using page template to fetch posts in page
- Create Customization Controls from Array
- Top menu disapears in Category Pages when filtering using ACF
- ACF loop and php formatting
- !in_array doesnt recognize category
- How to change links in the 3 main categories, on widget category, to a javascript function call
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Category List in Theme Options Page
- Pagination in category.php not functioning
- For each loop will not append to the_content hook
- How to handle parent and child pages?
- How to create a loop that will display one post and stop?
- Pagination not working properly