After further investigation, I noticed my theme was actually replacing all the anchor tags with shortcodes for SEO purposes, so there weren’t any links in the content anymore. I was able to make it work by replacing
$content = get_the_content();
with
$content = apply_filters( 'the_content', get_the_content() );
Related Posts:
- If No Search Results, Show Posts from Alternate Search Query
- How to go about combining dropdowns / filter queries?
- How do I set the Stewart Search Template to return only published posts in the result
- How to fix pagination for custom loops?
- Remove the Homepage Query
- A search for ‘0’ returns results
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- Transient not working for custom loops
- post loop causes wp_users and wp_usermeta DB queries for each users
- get_the_foo() in the loop – does it perform another query?
- How to Loop within a Loop (Display Children and then Grandchildren)
- Loop posts only excluding first post
- Custom search form to display users only
- Loop after page content
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- A loop with all articles with certain text strings in tags
- Display most viewed post from last 30 days is not working correctly
- Query posts if meta key starts with
- 3 Posts in Loop, Show Stickies First
- Get search.php results in header.php?
- Query reset problem or flawed code to enable custom post type query
- Query last updated posts (posts updated in the last 24 hours)
- Conditional query that displays on Woo product attribute pages
- How do I use AJAX Query in my posts loop?
- woocommerce get_price_html not pulling in correct price
- Filter the_posts doesn’t work on search page
- How to fix pagination for custom loops?
- How can I paginate this?
- How to display posts by vote count and if no value continue with latest posts with no votes?
- How to fix pagination for custom loops?
- Split wordpress loop to multiple layouts
- Making a query to the DB using same parameters of loop
- Loop inside query
- How to modify search.php to not show pages only show posts
- Include future posts in tags and in search
- get_delete_post_link() inside Loop stubbornly returns nothing
- loop inside the foreach
- Query posts only with actual text content (not including shortcode or images)
- Search page loop banner image issue
- Does search.php autofilter The Loop?
- Exclude posts based on an array
- Query post & loop problem.
- Loops for cat links not looping for wordpress site
- Custom Query with Sticky Posts
- Build a Page which shows the Oldest Post with specific Custom Field Value
- Work arounds for conditional checks inside the loop in search.php?
- Query posts and display all dates in repeater field in chronological order
- How to fix pagination for custom loops?
- Search – Check if post is a page on search page
- Get featured image outside the loop using foreach
- Alternative layout the loop
- Show posts by tags excluding current post
- Strange problem with wp_get_attachment_image_src database (db) query count
- Next 10 posts data of currently viewing post in blog page
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- Get query result before posts are displayed?
- Combine Query and Select Database to create directory loop
- WordPress loop: Display if posts exist
- wordpress showing all posts instead of date range
- Eliminate duplicates in a foreach loop [closed]
- Multiple loop with pagination in same page
- Query Loop Block: possible to restrict just child pages?
- Use Base-URL with Query-Loop
- Using Query Loop Block to list all posts under each category
- Different date time in results of search
- Getting the correct post ID in WordPress query loop
- Dinamis Query Loop template Custom Post Type dan Taxonomy di WordPress Blocks dengan PHP
- Get gallery in loop through ajax
- Archive: Lists itself
- How to show the last article in a different way in my blog?
- WP_Query & Duplicate entries
- Last post in loop when even
- Add to search posts query array with post IDS which will appear first
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Get a specific size from wp_get_attachment_image_src
- the loop printing post in one grid
- Check value of post meta within IF statement
- Modify behaviour of “s” parameter in wp_query
- Search has query that will return no results
- How to insert content before pagination in loop?
- Pagination on a underscore custom theme
- Sort by postmeta on when searching
- My WordPress installation doesn’t load correct template
- How to display a loop of custom post types in columns
- Use the loop to check if DB record exists?
- searching by keywords in post’s metas or pagination links problem
- WordPress multiple loops with default pagination
- Loop random posts and display odd and even based on two alternating meta values?
- How to resolve a reload loop issue in the frontend when logged in to WordPress multi-site backend admin area
- Can’t limit posts_per_page in loop
- WP Query – Search in title or author_name
- Pagination adds search query (again)
- WordPress loop : how to exclude some posts with their status?
- WordPress + Isotope: how to give different widths to each entry?
- Exclude Posts Using Meta Query and User Meta
- is it bad to copy the loop for a template?
- Customizer settings using “for” loop