Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title template doesn’t work for non–hierarchical taxonomies in editor #3364

Open
brit77 opened this issue Nov 19, 2015 · 18 comments
Open

Comments

@brit77
Copy link

brit77 commented Nov 19, 2015

Under Titles & Meta settings, I've set Title template for one of my custom post types, using the %%ct_%% variable.
titles_ metas-yoast_seo mad_beppo wordpress-_2015-11-19_10 44 44

which should read something like "Chapter 13 - French for Reading Knowledge" in the snippet title.

Instead, what I see in the snippet editor after the plugin update is: "Chapter 13 - %%ct_course%%"
edit_course_file_ mad_beppo wordpress-_2015-11-19_10 48 09

In the front end, the title appears to be displaying correctly with the title template rendered properly:
courses_ mad_beppo wordpress-_2015-11-19_10 49 45

so the problem seems to be just with the snippet title display of the template in the editor screen (not with the title template itself) -- not a critical bug but can be disconcerting for clients...and I assume is not intentional!

Thanks for looking into this!

@Rarst Rarst reopened this Aug 15, 2016
@Rarst Rarst removed this from the 3.3 milestone Aug 15, 2016
@Rarst Rarst changed the title Issue with Title Template Display Title template doesn’t work for non–hierarchical taxonomies in editor Aug 25, 2016
@Rarst Rarst added this to the 3.5 milestone Aug 25, 2016
@Rarst
Copy link
Contributor

Rarst commented Aug 25, 2016

Adding to 3.5 milestone, as I closed later issue in it as duplicate of.

@omarreiss omarreiss modified the milestones: 3.7, 3.5 Aug 30, 2016
@omarreiss
Copy link
Contributor

3.5 comes too early. @Rarst if you want to have a go, be my guest. Otherwise, we'll do our best to include this in 3.7.

@Rarst
Copy link
Contributor

Rarst commented Aug 30, 2016

Too JS for me. As per comment I only added to 3.5 because instance of same issue already was in it.

@moorscode moorscode modified the milestones: Future release, 3.7 Sep 29, 2016
@monbauza
Copy link

The same issue happens with template variables for WooCommerce custom fields and taxonomies, i.e. %%cf__regular_price%%
image
WordPress 4.6.1
Yoast SEO 3.8
WooCommerce 2.6.8

@monbauza
Copy link

Please inform the customer of conversation # 159070 when this conversation has been closed.

@zandergrin
Copy link

Is this still an issue? I'm seeing it on my site with info from ACF custom fields.

image

@jan1980
Copy link

jan1980 commented Dec 19, 2016

Issue persists on Yoast 3.2.4 (current last version) and WordPress 4.3.6 (somehow dated, as we are in 4.7 at the moment) - but not always! Oftentimes the custom field gets properly parsed and appears fine in the preview, then in other posts (same post type) the custom field appears un-parsed between the %% signs. I am at a loss... Would updating WP help? Any help is appreciated!

@monbauza
Copy link

This issue is still relevant. The plugin outputs the template variables correctly in the source code but the snippet editor just shows the placeholders.
image
WordPress 4.8.2
Yoast SEO 5.5
WooCommerce 3.1.2

@monbauza
Copy link

Please inform the customer of conversation # 231170 when this conversation has been closed.

@suascat
Copy link

suascat commented Nov 18, 2017

Please inform the customer of conversation # 259690 when this conversation has been closed.

@rmarcano
Copy link

Please inform the customer of conversation # 436076 when this conversation has been closed.

@mariusghitulescu
Copy link

I was able to replicate this with WordPress 5.0.1 and Yoast SEO 9.2.1. I tested this with a custom post type (review), custom taxonomy (review_category) and a custom field (rating).

The custom field gets replaced with its value correctly in the snippet editor. The custom taxonomy does not show in the snippet editor.

SEO title: %%title%% %%page%% %%sep%% %%ct_review_category%% %%sep%% Rated:%%cf_rating%%/5

2018-12-13 11_53_11-window

The generated title is Yoast review - Plugins - Rated:5/5, as expected.

2018-12-13 11_53_33-window

@monbauza
Copy link

The problem also occurs in the meta description (I tested the %%tag%% and %%ct_product_tag%% variables in Yoast SEO v14.6.1). See screenshot below.

image

@monbauza
Copy link

Please inform the customer of conversation # 632641 when this conversation has been closed.

@IreneStr IreneStr removed this from the Future release milestone Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests