I overlooked get_queried_object()->post_name
Under:
$title_post_tag = new WP_Query( array(
'tag' => strtolower( get_the_title() )
I changed it to:
'tag' => get_queried_object()->post_name
So far, it looks like it is working.
Related Posts:
- How to get full content including template HTML
- Is there a wordpress function that I can use to retrieve the current page that is loaded?
- Get the url of a page template without using the page slug and ID
- All top-level pages are using index.php as template
- Changing permalink name redirects to another template?
- Environment independent way to link to certain pages on frontend
- Permalink for specific page name
- post permalinks with dot in url don’t resolve to correct page template
- How to make different urls for some tags pages
- Multiple URL rewrite rules and get every prams
- “post-name” Renders Using page.php, but “post-name-2” renders with single.php
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Pages included in another page and duplicate content issues for SEO
- Permalink / sub-template issue
- where is permalink info stored in database?
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- How would I create a different permalink structure for pages and posts?
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- How to prevent the default home rewrite to a static page
- Is there an action for when permalinks are rebuilt?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- mod_rewrite enabled but Permalinks show index.php
- How to get a page url by a page id?
- Why does /wp-json/ not work on the “plain” permalink structure?
- Custom Permalink: /year/month/post-goes-here/?
- How to change “permalink” structure in “WordPress Thesis” theme?
- Turn off %postname% auto-incrementing?
- How to get the post id from a permalink?
- Does a parent page’s post_title have to appear in a child page permalink?
- Stop redirecting to posts not in a category / duplicate slugs
- How to make variables in URL look like the permalink structure?
- Custom Taxonomy URL
- Custom Post Type slug same as page name causing a conflict
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Custom attachment permalink structure [closed]
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Is there anything built into the WordPress core to enable me to get the relative path from the “permalink structure” option
- Why does chrome keep downloading a file instead of running the site?
- Re-write specific custom post type category URL to go to another page
- Get page by path – honoring permalink settings (urls w/slashes)
- Pagination Issue – /page/2 404
- How to stop WordPress from removing & from URL?
- Nginx Rewrite Rule:: index.html added to every permalink
- Change permalinks on move from one site to another
- Making permalinks to /%postname%/ by default in installation
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Custom Post Type Yearly Archive Permalinks
- Post with Custom Permalinks
- Passing the JQuery string to Worldpress URL
- An other permalink problem – 404 Error
- permalink results to “page not found”
- How to prevent WP overwriting my custom htaccess rewrites?
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Edit permalink for certain pages
- Strange behavior with a redirect loop – involves WPML multi-language plugin
- Adding category slug to posts permalink causes 404 error
- Apply function only if end of url has /amp/ [closed]
- Post Title to link to a PDF
- Changing permalink settings causes 404
- Issues when changing permalink Structure
- permalinks on title tag
- Non Latin page permalink problem
- Custom permalink structure for product
- index.php in URL
- Empty the_excerpt() broke the_permalink() under him?
- Permalink not changing according to post type
- Custom permalink structure with a prefix just for posts
- How to change permalink for listings
- WordPress Pages that use Domain URL
- 404 page not found – Yet open admin page it works
- How can I have a page’s permalink include my custom post type’s slug?
- wordpress admin panel loop on nginx
- Can’t access new WP install on subdirectory
- WordPress Permalinks
- Problem with permalinks
- Find internal links to post
- How to change link of an uploaded file to the media library
- On Macbook, my permalinks with post name don’t work. Returning 404 error
- “Undefined” added to page content after google Adwords click
- WordPress pages break with custom permalink settings (theme directory not output)
- Remove /index.php from Permalink
- Image upload ruined my links
- How to rewrite a folder in WordPress?
- Tag search not working after permalink structure change
- Why is there a # and other characters in URL for WordPress site?
- standard post with extra parameter brings permalink problem
- redirect old pages by .htaccess
- wp_get_attachment_url not working
- Custom permalink to make a page respond properly
- WordPress 3.1 problem, getting 404
- Redirect Loops Problems
- 301 Redirect posts to newly added categories
- How to have category/subcategory/posttitle/ permalinks?
- Permalink settings are stuck on https, will not update to http