Bilal Shahid
Forum Replies Created
-
Forum: Plugins
In reply to: WP_Customize_Background_Image_Control not workingWP_Customize_Background_Image_Control and WP_Customize_Header_Image_Control are not working for me either. You better use WP_Customize_Image_Control class instead.
Forum: Fixing WordPress
In reply to: get_children() and get_posts() not workingAs far as I have searched about it, you can’t “attach” an image to a post unless you upload one for it. You will have to upload an image to a post in order to attach it since insertion and attachment are two different things.
Forum: Fixing WordPress
In reply to: Showing posts of only specific formatit doesn’t work. I found a way but thats not looking ‘native’:
$args = array(
‘post_type’ => ‘post’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘post_format’,
‘field’ => ‘slug’,
‘terms’ => array( ‘post-format-link’, ‘post-format-image’, ‘post-format-quote’, ‘post-format-gallery’ ),
‘operator’ => ‘NOT IN’
)
),
‘posts_per_page’ => 5
);$recent_posts = new WP_Query($args);
Forum: Fixing WordPress
In reply to: Showing posts of only specific formatyeah it works for other post formats but I want to query only “standard format”. Can’t find a way to how to do it 🙁
Forum: Fixing WordPress
In reply to: get_children() and get_posts() not workingOh yeah…!! thanks man, you are great 🙂 , the image is not showing up in “uploaded to this post”.
but I’m still wondering why the image is not being shown in the “uploaded to this post” when it’s appearing in the content as a caption image. Shouldn’t the caption image work as an attachment?
Thanks again.