Hi @milleniumdemo
We’re not sure how you are implementing the custom snippet variables on your website, but we recommend you check out this article for more information – https://yoast.com/help/list-available-snippet-variables-yoast-seo/#custom-variables
I rated 1 for plugin support. Nobody can’t find the answer to simple question.
Even your developers in github
I need just to show car brand in the meta title. Here is show’s only car model.
@mikes41720
Tank you for your help…
Hi,
If you want to use the output of a custom field as a snippet variable, you’ll first need to find the custom field name – https://yoast.com/help/how-does-the-plugin-work-with-videos-in-custom-fields/#find
If the custom field was called myfield
, the custom snippet variable you would need to input would be %%cf_myfield%%
. It’s discussed further here – https://yoast.com/help/list-available-snippet-variables-yoast-seo/#custom-variables
You just need to make sure you get the correct custom field name and make sure you’ve implemented the snippet variable correctly and it should output.
@mikes41720
HI
The I created the taxonomy custom filed correctly100% where I mentioned above %%ct_hp_listing_marka_i_model_avtomob%%
In meta Title this custom field must include The Car brand”Chevrolett” and Car model “Orlando”.
But It output’s only Car model “Orlando” in meta Title. Please look to the first message of topic.
and please follow to the link and in html code of this page, you can find the attributename “marka_i_model_avtomob” which it includes CHEVROLETT ORLANDO..
but in meta title it shows only ORLANDO.
This page is a listing detail page of Directory(Classified) site…(it does not work with woocommerce it works independently)
https://ibelyo.ru/obyavlenie/prodaetsya-chevrolett-orlando-novaya/
Hi,
We’d need to investigate further as to why the custom taxonomy snippet variable (https://yoast.com/help/list-available-snippet-variables-yoast-seo/#advanced-variables) isn’t working on your website, but we are unable to do so over these public forums. You may want to consider Yoast SEO Premium so we can take a further look at this.
Otherwise, we’ll be keeping this forum thread open for 7 days so that other users and readers can help provide suggestions and assistance. Sorry we can’t be of further help here.
I wasted my time here. Thank you for advise. But I can’t change my rating. It’s my opinion and I hope you understand me.
Hi,
We’re sorry to hear about the feedback. We can only refer you to our documentation here for custom taxonomies.
Custom taxonomy names can be found in the browser bar on the backend when viewing or editing an item.
Example: edit-tags.php?taxonomy=mycategory&post_type=myposttype
In the example above, we are editing a custom taxonomy called mycategory under a custom post type called myposttype. If I wanted to output a list of categories assigned to a myposttype page, I would use %%ct_mycategory%%
. Alternatively, if I wanted to output the description of an individual mycategory on the category archive page, I would use %%ct_desc_mycategory%%
If it’s not working as expected, as mentioned, it’s really something we’d have to take a closer look at on your site, which we are unable to do so here over these public forums. We hope you understand.
-
This reply was modified 3 years, 2 months ago by Michael Tiña.
@mikes41720
Is it possible to show any simple word in <div> on the page in the meta Title if it has a class?
Even if it’s not a taxonomy or posttype.
I need to show this words in div:
<div class=”hp-listing__attribute hp-listing__attribute–marka-i-model-avtomob”>
Модель авто: Chevrolett Orlando </div>
here is the taxonomy – marka_i_model_avtomob’s edit page:
/edit-tags.php?taxonomy=hp_listing_marka_i_model_avtomob&post_type=hp_listing
here is the Chevrolet option’s edit page:
/term.php?taxonomy=hp_listing_marka_i_model_avtomob&tag_ID=629&post_type=hp_listing&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dhp_listing_marka_i_model_avtomob%26post_type%3Dhp_listing
We are afraid to say that Yoast SEO has no option to include a </div>
in the page title or meta title that has a class. It would be something specific to WordPress itself. So, you may want to submit your query over at the WordPress general forum.
Thanks I found the solution independently. I wasted 3 days here to find the answer from support. But I found the solution independently.. My rating is clearly 1 for Yoast support.
We’re sorry you feel that way.
If you have found the solution to your problem, we also encourage you to post it here, so that if another user is looking for the same answer that it’s available to them.
Also, if you should need any further assistance please do not hesitate to let us know.