Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantHi Long,
Changing the ID does fully break my site on other places. As example Oxygen uses the ID, and php code like the RWMB where I have manually add the settings_id to 175.
So yes, the problem in the view is fixed but I have 10 websites where the ID is 175.
I haven't set the value to 175 but when I add the settingspage it is set.
What to do?
Cees
[email protected]
ParticipantHi,
Send it
[email protected]
ParticipantI hope it is possible to take longer time to look at the problem. Waiting time with another part of the world is 24 hour. Maybe you will login to the site and look what is happen.
[email protected]
ParticipantDone but is doesn't work:
{% set group = attribute( site, '175' ) %}
{% set field = attribute( group, 'ws-dp--hp_newsitem' ) %}
{{ field.title }}{% set field = attribute( site.algemeen, 'al--hompage_blogitem' ) %}
{{ field.title }}175 is the value that stays in the Settings Page ID box in the builder. It is generated when I make the settingspage, not choosen by me.
[email protected]
ParticipantHi Long,
Thanks. But it is the ‘insert field’ button that generates the code for me. That is strange. The code on algemeen is diffeerent indeed but both comes from ‘insert field’. Can you explain this?
Cees
[email protected]
Participant[email protected]
ParticipantHi Long,
Thank you. It works on a custom field, fine. But I want also change the post_content field that is loaded. The code doesn't work for that field. I have tried to make an extra filter like rwmb_normalize_{$field_id}_field but it doesn't work.
add_filter( 'rwmb_normalize_post_content_field', function( $field ) {
if( !is_admin() ) $field['type'] = 'textarea';
return $field;
});[email protected]
ParticipantHi Long,
It is midnight here and I could't sleep :). So I have make the code again and it works now.
[email protected]
ParticipantHi Long, how do I share this?
[email protected]
ParticipantYes I understand, but there is no easier way? Can I export / import the custom fields and change ‘ add the code? I normally use the builder.
[email protected]
ParticipantHi Long,
I understand now! And it is better, much better, to use Tabs inside Custom Field instead of using it in the page settings. I have less Custom Fields 'groups' now.
Could I easily merge different Custom Field Groups? Remove the group and add the same id in another Group? Maybe there is a better of faster way.
[email protected]
Participanthttps://ibb.co/PgTCn9K Please tell me where to order the tabs in the settings page.
[email protected]
ParticipantYou can remove this post
[email protected]
ParticipantHi Long,
Sorry ... it is unclear for me. From beginning:
Which steps do I have to do when I will change of or more field_id's in CPT's?
The fields are used in the settings page AND in WordPress (Oxygen) as dynamic fields.So an example:
I have the field email_id where the customer can store his e-mail address. The field is used in different pages in Oxygen as dynamic fields or as an function.When I change the field ID in the Builder then the values in the WordPress database are not changed. So that is the reason that I also do an search and replace. Is this the way to go? In my previous test the website are broken when I change field ID's.
[email protected]
ParticipantHi Long,
No.
I add the first two fields and save them.
Another day I add two extra fields and save the again.
After that I move the fields (the last two to the beginning).
When I hit save the total Custom fields are empty. -
AuthorPosts