Is there a workaround for this?
]]>I’m facing an issue with the API REST. I’m trying to use a PUT request to modify the values of my metas (meta title, meta description, og meta title, og meta description, twitter meta title, twitter meta description), and an ACF field. Like the title says, i’m trying to do that for my product categories (I already succeeded doing it for my products).
The thing is, no matter what I use as JSON body, nothing works. I tried something like this (which is the information returned by the GET request) for my ACF field (I already downloaded the “ACF to REST API” plugin) :
{
“yoast_head_json”: {
“title”: “{{ $json.different[‘TITRE SEO’].inputA }}”,
“description”: “{{ $json.different[‘META DESCRIPTION’].inputA }}”,
“og_title”: “{{ $json.different[‘TITRE SEO’].inputA }}”,
“og_description”: “{{ $json.different[‘META DESCRIPTION’].inputA }}”,
“twitter_title”: “{{ $json.different[‘TITRE SEO’].inputA }}”,
“twitter_description”: “{{ $json.different[‘META DESCRIPTION’].inputA }}”
},
“fields”: {
“texte_de_referencement”: “{{ $json.different[‘TXT REF’].inputA }}”,
“titre_h1”: “{{ $json.different[‘H1 REF’].inputA }}”
}
}
For my ACF fields I also tried this :
{
“acf”: {
“titre_h1”: “{{ $json.different[‘H1 REF’].inputA }}”
}
}
(I’m trying with dynamic informations, but it won’t work with static informations either).
The url i’m using is https://www.mywebsite.com/wp-json/wc/v3/products/categories/product_cat_id and of course I have the right credentials (which allowed me to do the same, but successful request for my products “https://www.mywebsite.com/wp-json/wc/v3/products/product_id”).
Am I missing something ?
I also tried something like this, but still won’t work :
{
“meta_data”: [
{
“key”: “h1_title”,
“value”: “Updated H1 Title”
}
]
}
Is it something impossible for now ?
]]>I have created a custom post type “Products” with Elementor, which has_archive = true
The title “plural” of this CPT is “Products”
Unfortunately, I can’t translate in other langugage the archive title “Products”. It still in English.
I have the same result for Yoast SEO breadcrumb. The archive title still “Products”
How can i modify that ?
Why Polylang or ACF doesn’t include the possibility of translating the archive title ?
]]>acf-multiple-taxonomy
‘s AJAX verification implementation.
If anyone comes here looking for a fix, I have submitted a PR that resolves the issue.
]]>How can I remove the permalink structure altogether for a CPT and have each post be directly following the root?
So for example, I have a CPT called ‘Catalog’, which features film titles – of which the url becomes domain.com/catalog/film-title. How can I make all the posts automatically be listed without the catalog archive slug, so directly as domain.com/film-title? It’s important for this specific CPT as it’s they are the companies main products.
The ACF support team referred me to this plugin. Thank you so much for your help and your work in creating this plugin.
Warm wishes,
Twan
The field is referenced in my import file as Meta: extra_description
The file imports correctly and if I edit any of the imported products the extra_description field shows the correctly imported data. However, the newly imported data does not show on the front-end unless I resave the product. I am importing data in batches of 100 products and cannot go back and resave 1600 products one at a time.
Any suggestions? All caches have been cleared.
]]>