Slick + PHP + ACF + JQuery slide reveal not working
Slick + PHP + ACF + JQuery slide reveal not working
Slick + PHP + ACF + JQuery slide reveal not working
Try this alternative way of getting the post objects. Seeing as your loop seems to be using the global post data anyway, this method uses setup_postdata to set the global values. $post_objects = get_field(‘post_objects’); if( $post_objects ): ?> <ul> <?php foreach( $post_objects as $post): // variable must be called $post (IMPORTANT) ?> <?php setup_postdata($post); ?> … Read more
Order Custom Post Type by Custom Field Value
Since you are using get_sub_field() i assume you are inside a have_rows() (a repeater), in theory it should work like this: $image = get_sub_field(‘image’); <img src=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“alt’] ?>” /> and this is what you can get: $image[‘url’] //this is the full image echo $image[‘sizes’][‘medium’]; //medium image echo $image[‘sizes’][‘thumbnail’]; //thumbnail image … Read more
Don’t quite understand how this looks on the backend. Also does it needs to look like it’s checkboxes, or are you trying to group them in some way?
add custom filters to the event calendar plugin programatically to frontend [closed]
How can I make this Advanced Custom Field Save & Store local json work?
Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
If you look at the register_post_type() documentation, which links to this page, you’ll see all the labels that you can set. There are more than the 6 you have defined. I believe all_items is the one you’re talking about. name – General name for the post type, usually plural. The same and overridden by $post_type_object->label. … Read more
add_action(‘publish_post’,’create_custom_field’) function create_custom_field ($post_id) { global $wpdb; if ( current_user_can(‘contributor’) ) { if(get_post_meta($post_id,’custom_field_1′,true) == ‘1’){ add_post_meta($post_ID,’submit’,’1′,true); return $post_id; } return $post_id; } }