Imported Posts missing summary text on staging site

Although there’s little chance that something went wrong, first of all make sure that you content is actually there. Just edit a post from your dashboard and make sure it looks like it should, Now, it looks like you have different themes on you live and staging sites, so it most probably is an issue … Read more

WordPress Customizer Additional CSS – line numbers overlaps CSS code

Instead of doing it that way I found a code snippet to add a new css file. Here is the new code: function add_my_customizer_styles() { wp_enqueue_style( ‘my-customizer-css’, trailingslashit( get_stylesheet_directory_uri() ).’assets/styles/customizer.css’, null ); } add_action( ‘customize_controls_print_styles’, ‘add_my_customizer_styles’, 99 ); That is working fine. Evidently, while the previous code works for some areas of the admin it … Read more

Same ACF Relationship field for multiple Post Options sub-pages?

The method to use is… In the acf_add_options_sub_page declaration, add ‘post_id’ => ‘article’ as a parameter. (post_id) This is how the field data, as entered on the Options page corresponding to my post type, will be saved. On the display end, display using $featured_posts = get_field(‘featured_posts’, ‘article’); ‘article’ and ‘report’ are both used. In my … Read more

Set custom banner image size with wp_customize

Turns out it’s fairly straightforward, just a case of knowing what to search for https://codex.wordpress.org/Class_Reference/WP_Customize_Manager In my tyc_banner_image function I added the last four arguments below. $wp_customize->add_control( new WP_Customize_Cropped_Image_Control($wp_customize, ‘tyc_banner_image-control’, array( ‘label’ => ‘Image’, ‘section’ => ‘tyc_banner_image-section’, ‘settings’ => ‘tyc_banner_image-image’, ‘flex_width’ => true, ‘flex_height’ => true, ‘width’ => 1920, ‘height’ => 500, )));