Forum Replies Created
-
AuthorPosts
-
September 14, 2021 at 11:39 PM in reply to: โ Need guidance if MB can create a Business Directory #30765
Roger
ParticipantDid you find anything @digitanos?
July 23, 2021 at 6:39 PM in reply to: โ map the value of custom field into wp default post_titel #29666Roger
Participantcool! Glad that i whas able to help someone this time ๐
July 23, 2021 at 6:21 PM in reply to: โ map the value of custom field into wp default post_titel #29663Roger
Participantwhat is the name from your custom post type?
July 23, 2021 at 6:14 PM in reply to: โ map the value of custom field into wp default post_titel #29661Roger
ParticipantSo if i stand correctly, you want the field with the name Headline to be the post title?
If so.Edit your post type within metabox
Go to Supports
Make sure Title is turned of
Then create a code snippit (download first a snippit plugin)
function change_post_title_by_field_value( $post_id ) { if ( get_post_type( $post_id ) == 'YOUR_CUSTOM_POST_TITLE_HERE') { $headline_title= rwmb_meta( 'headline', $post_id ); $title = $headline_title; $title = sanitize_text_field( $title ); $new_slug = sanitize_title( $title ); } else { return; } // prevent a loop remove_action('save_post', 'change_post_title_by_field_value'); $content = array( 'ID' => $post_id, 'post_title' => $title, 'post_name' => $new_slug, ); wp_update_post($content); add_action('save_post', 'change_post_title_by_field_value'); } add_action('save_post', 'change_post_title_by_field_value');Roger
Participantwould never have found this without your answer! really thank you!!
Also if someone has the same issue, with direct admin you can find it here:
Select PHP version -> Options -> max_input_varsYou can find the Select PHP version under the advanced Features
Roger
ParticipantI know that solution, but the rest routes plugin is different. it makes it for non-devs a lot easyer to do query's.
Think about it.
Buildingthe fields and posts with metabox.
Building a easy clickable query to filter or to build a awesome form without any coding or any snippet (even if it is a snippet then it can be a created code what someone can copy paste). Or creating a query and BAM getting all the information with a shortcode in a smooth datatable view! You want a clickle link? BAM assign it from that tool and say you want to open view that belongs to that post.check the official website.
https://restroutes.com/#homeI really think you that it can metabox a better tool for non dev's!
Roger
ParticipantMaybe it's just me but do you understand my question? I can read the documentation a zilion times it still does not make any sense how i can get this to work.
You think i can use the field post... oke so i will write post in the function.php at the relation setting. that will not do the trick!
Meta box is advertising with we got your back. No php knowledge is needed.
I just want to keep track of the attendance from children! @ahn? please?Roger
Participantoke. but what then? could you explain how i can create a list with the names in that posttype with the radio buttons behind it?
Roger
Participantsir? anyone?
Roger
Participantany news regarding this?
Roger
ParticipantAny update regarding this?
Roger
ParticipantI can see the archive but i wont get the information that i asks... Will try it on a other way ๐
Roger
Participantany updates regarding the video guides?
Roger
ParticipantThis thread can be closed. If more people are searching for this they can use my example.
Roger
ParticipantThat will do! thnx!
But also found a other solution... Install the Fontawesome plugin.
then go to view{% for i in 1..5 %} {% set starClass = (value_of_the_rating_will_be_placed_here_without_the_{} >= i ? "fa fa-star checked" : "fa fa-star unchecked") %} <i class="{{ starClass }}"></i> {% endfor %}In the CSS
.checked { color: orange; } .unchecked { color: Grey; }BTW this did cost me almost 2 months.... can you guys do a good views tutorial, please!!
-
AuthorPosts