Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantSorry: found solution. Forgot to refresh the page after removing other conditions.
[email protected]
ParticipantSorry.. the previous post is not clear:
I check post_id = 2127 and see one of the custom fields, meta_id = 2494.
When I remove the post with post_id = 2127 and I check meta_id = 2494 then it is also gone.
SELECT * FROM wpb8_postmeta WHERE meta_id = 2494SO in my opinion the custom fields values are also removed. Can you confirm this?
[email protected]
ParticipantHi Peter,
Before you answer me I was checking in the database what happens when I remove post_ID 1217.
When I add the SQL :
SELECT * FROM wpb8_postmeta WHERE post_id = 1217; is result no rows in the database.(Before removing I got 6 rows).
So it looks like it works, con you confirm this? Or am I looking wrong ?
February 23, 2023 at 12:14 AM in reply to: ✅How to use a Fontend Submission on a single page (Bricks) #40683[email protected]
ParticipantI found!
[mb_frontend_form id='locatie' post_id=current post_fields='title,excerpt, content']
February 22, 2023 at 11:32 PM in reply to: ✅How to use a Fontend Submission on a single page (Bricks) #40681[email protected]
ParticipantHi Peter,
Where ? I use the shortcode.
[email protected]
ParticipantFollow up reply
[email protected]
ParticipantHi Long, but how do I add this to the AIO builder? I have tried but it won't work.
[email protected]
ParticipantThat is strange. I see it now when I add a new record with empty fields. But I have records that have a empty fields. A lot.
I / You have do a migration from ACF to Metabox 1.5 years ago, first manually later with the new tool. Can that be a reason? See image
August 22, 2022 at 1:34 PM in reply to: Fields are empty after moving MetaBox from TAB to sub settings page #37963[email protected]
ParticipantHi Long,
Thank you.
Just to be clear: do I just have to clear the old fields and then delete the code? Or are there still empty fields left in the database?
July 5, 2022 at 9:55 PM in reply to: Is it possible to make relation between the same posttypes? #36807[email protected]
ParticipantHi Long,
That is the only thing I have to change? No args or something?
[email protected]
ParticipantI have tried that and that doesn't work.
[email protected]
ParticipantYes that works
[email protected]
ParticipantI think I have found it 🙂 :
{% set args = { post_type: 'locaties', relationship: {id: 'route-to-locatie', from: post.ID}, tax_query: [{ 'taxonomy': 'soort-locatie', 'field': 'slug', 'terms': 'horeca' }] }%} {% set posts = mb.get_posts( args ) %}But I don't understand when to use {[]} and when only {}. The same for post_type : 'locaties' vs 'post_type' : 'locaties' ('single quotes' around 'post_type'.
[email protected]
ParticipantHi Long,
Maybe a bad explanation. I try to explain. You know the repeater in Oxygen.
I have a CPT routes. When I do a repeater / wp_query on the CPT that I could load a shortcode [showroute] to do some functionality. That shortcode use the PostId that is queried. So this works:
rwmb_get_value( 'route_map' );Now I use the MB View to load all the posts in the CPT. Within the loop I do the same shortcode [showroute]. But now there is no PostId so inside the shortcode I have to use rwmb_get_value( 'route_map','',$postid ); The $postid is send in the shortcode like [showroute postid=post.id]
For now I have replaces the shortcode to an function and do something like this:
{{ mb.route_function(post.ID) }}[email protected]
ParticipantHi Long,
- Yes I mean. I thought how more views (shortcodes) how slower WordPress is.
- I use that way now.
I love the views. It is a next step in developing for me.
-
AuthorPosts