How do I put the value of a meta field/custom field into one of the Forminator fields? I’m using Gutenberg. A Forminator form is automatically added to each page of a custom post type I made with Advanced Custom Fields (ACF). I am trying to put some hidden custom field values (corresponding to each individual page) about the project a submission corresponds to in hidden fields of a form, so that the form stays short, accurate, and avoids redundancy.
In a previous support thread, the support team gave a very brief and obscure answer that a meta field could be retrieved using the following PHP code:
$custom_field_value = get_post_meta(get_the_ID(), 'custom_field_name', true);
The answer did not explain where to put this code. I tried putting it in the hidden form field, using the meta key shown in ACF. I tried entering it without PHP tags and with PHP tags, but neither returned the proper value when I did test submissions. I tried some other Forminator form fields too, but none worked.
How do I get this dynamic (relative to the form, static relative to the individual post) content submitted with the form?
]]>I’m wondering if a custom field of a post (or CPT) can be used in the SEO meta title of that post. This can either be through macros or programmatically but I haven’t been able to find anything relating to this.
This use case requires the use of the meta field as the default post title isn’t what i’d like in the SEO title.
Secondly, is it possible to turn off smartcrawl for specific post types or taxonomies?
Thank you.
]]>I am creating an event with the ORM like this:
$new_event = tribe_events()->set_args($event)->create();
// Set meta field to the event
add_post_meta($new_event->ID, '_meta_field', $meta_field);
After that, I need to get the value of this meta field when the event is created and I do this:
add_action('save_post_tribe_events', 'get_meta_field');
function get_meta_field($event_id) {
$meta_field = get_post_meta($event_id, '_meta_field', true)
}
But I get nothing when the event is published. But, when I delete the event, the hook also fires and this time I have the meta field value. The thing is, I need the data when the event is published.
I tried this with other hooks like wp_insert_post or wp_after_insert_post but to no avail. I also tried to get $_POST[‘_meta_field’], but also nothing.
What can I do?
Thank you
]]>I see this as a bug. Is there maybe a function or a cron job I could run to set them correctly?
Thanks in advance for your help!
Cheers Harry
Your plugin is really great and easy to use (I used WPML before for years)!
One question: I would like to translate the option labels of a Jet Engine meta field (field type: radio). Is this possible? Or a feature of the Pro version?
Thank you!
Best regards,
Heiko
My ACF meta key is in the Hebrew language and not in English, when I insert inside filter everything setting the Hebrew meta key it shows me an error. Why is?that happen?
screenshot:
https://ibb.co/SrDQj32
Can somebody help me how I can create a Post Title(H1) using two or more custom meta fields, also a shortcode of that function, so can use that shortcode in Element / Page builder.
Example Title: How to cook Indian Chicken Biriyani.
Above – 1. How to cook (Should be Fixed in every title)
2. Indian (Custom meta field, so I can put anything from post editor)
3. Chicken Biryani (Custom meta field, so I can put any recipe I want in post editor)
The title should be within (h1) tag.
also I want to put the title using shortcode in Single post Page builder.
]]>can anybody help me with this? I want to make a button where the domain and prefix will be fixed but the permalink will be dynamic.
Example: “https://domain.com/download/(dynamic permalink)” the domain and download prefix(domain.com/download/) is fixed for all articles but the permalink will be dynamic for the current post.
For example, if I am on this post “https://domain.com/self-motivation-pdf” then the button on this post should be like “https://domain.com/download/self-motivation-pdf”, the same goes for all posts, also I will be using this button on a post template so the button will appear auto.
]]>