Multiple item layout with one query

As @MridulAggarwal already stated, it’s a pretty basic PHP task that you’re confronted with: $wpse69584_posts = get_posts( array( /* Your Arguments */ ) ); echo $post[0][‘post_title’]; echo isset( $post[0]->post_excerpt ) ? apply_filters( ‘the_excerpt’, $post[0]->post_excerpt ) : apply_filters( ‘the_content’, $post[0]->post_content ) ; // etc. Or if you’re using a loop, it’s even easier: global $wpdb; if … Read more

Custom formatting

That is one way to do it, and I have done that for certain technically challenges clients. It is quick and simple. It does add a query to the parent page, but that isn’t catastrophic. It would work fine if you have a few of these pages and aren’t adding or editing them a lot. … Read more

WordPress options text format

WordPress does not automatically texturize options. If you are using add_option(), update_option(), and/or get_option() then it should “just work”. Example: //Add an option to the database update_option(‘my_test_option’,’This is an option. Isn\’t it “special”?’); //Returns string: This is an option. Isn’t it “special”? echo get_option(‘my_test_option’);

ACF loop and php formatting

If it can be explicetly defined as the_title, then this should work for you: $pages = get_pages(array (‘sort_column’ => ‘menu_order’)); foreach ($pages as $page_data) { $fields = get_fields($page_data); if( $fields ) { echo ‘<div class=”the_title”>’ .$fields[‘the_title’] . ‘</div>’; echo ‘<div class=”container”>’; foreach( $fields as $field_name => $value ) { $field = get_field_object($field_name, false, array(‘load_value’ => … Read more