TotalPress.org
Forum Replies Created
-
Hi @gemini23
you can do as I wrote in the previous answer.If you want to add the entire schema json on every Product category (taxonomy) you can add a field group with a field of type “Textarea” on this taxonomy, after this add this php code on the functions.php file of your theme:
add_action('wp_head', function(){
if(is_tax('product_category')){ // change 'product_category' with you category slug
echo cpt_get_term_meta('schema_field_key', get_queried_object()->term_id); // change 'schema_field_key' with your textarea field key
}
});If your theme/plugins output the schema on frontend and you want to edit the edit, you need to use a filter/hook of the theme/plugin to edit the json and to get your custom schema this function:
cpt_get_term_meta('schema_field_key', get_queried_object()->term_id); // change 'schema_field_key' with your textarea field key
Dont forget your five star review to support this project <3
What do you mean with “schema code”?
Hi @gemini23
im not sure about your question, if you think about “Schema.org” snippet you can add a fields group with a field of type “Textarea” on the content you need (ie product category) and from the “edit product category” screen add your schema.org data on the “Textarea” custom field.
Now using wordpress native hook (like https://developer.www.ads-software.com/reference/hooks/wp_head/) and plugin function “cpt_get_term_meta($key, $term_id);” can you print your field content (schema.org data) to the frontend.- This reply was modified 3 months ago by TotalPress.org.
No but, no problem ??
So your plugin doesn’t check the browser before delivering the solution?
Yes, using htaccess rules at the same inage url (domain.com/wp-content/uploads/you-image.jpg) if the browser is webp compatible will serve webp image.
Hi @ofmarconi
the plugin create a converted version of your images, them using htaccess rules return the image to the browser without change url or ext of image.
If you try it, after image conversion open anonimus tab and visit your website, all images url point to original extension, but if you try to save image using new browser will saved used webp extension.
- This reply was modified 11 months, 1 week ago by TotalPress.org.
to keep the best perfomance quality the values of the relationships dropdown will be loaded after the first digits using ajax.
At the moment this is the best solution.
Many thanks
Forum: Plugins
In reply to: [Custom post types, Custom Fields & more] Can’t create field groupHi @normsash and thanks for using this awesome plugin ??
Thanks for your feedback, on the next release we change the error message to increase the understanding.
Dont forget your 5 stars review ??
Forum: Plugins
In reply to: [Custom post types, Custom Fields & more] Display values of custom fieldsHi @multidimentional and thanks for using this awesome plugin ??
You can do it using shortcode:
[cpt-field key="THE_FIELD_KEY" post-id="THE_POST_ID"]
*by default post-id is current post, leave blank to use it;
or by php function:
echo cpt_field(“THE_FIELD_KEY”, “THE_POST_ID”);
The new documentation is work in progress.
Dont forget to leave your official review ??
Hi @alessiac95
new version 5.0.1 solve the issues.Many thanks
Forum: Plugins
In reply to: [Custom post types, Custom Fields & more] 2024 ThemeHi @rawdolphe
to create single post type template using gutenberg (or other builder) you need a PRO version.Many thanks
Hi @eyevisions
new version 5.0.1 solve the issues.Many thanks
Forum: Plugins
In reply to: [Custom post types, Custom Fields & more] Plugin not visible on sidebarHi @ruepointmarketing
we were unable to replicate the reported bug.Have you activated the debug file? Could you paste any plugin related errors here?
Many thanks
Ciao @nscaletti
al momento i gruppi di campi creati con il plugin non vengono gestiti dalle revisioni.
Grazie
Hi @alessiac95
have you try to change “priority” on your add_action function where the post types was registered?add_action( 'init', 'registration_callback_func', -1)