420 reputation
112
bio website
location Lahore, Pakistan
age
visits member for 11 months
seen May 9 at 13:44
stats profile views 9

ob_start()

if(PHP_PROGRAMMER && WP_DEVELOPER && MYSQL_QUERIER && DATBASE_ANALYSER) this.profile = me;

ob_clean_flush();


Jan
23
accepted Screenshot are not showing up on plugin page
Jan
23
comment Screenshot are not showing up on plugin page
You are very much right. Moving images to assets directory fixed it.
Jan
22
comment Screenshot are not showing up on plugin page
Yes, they are truly png images. I just uploaded it to assets directory. Lets see if they show up.
Jan
22
asked Screenshot are not showing up on plugin page
Jan
15
revised Using meta query ('meta_query') with a search query ('s')
Fixed a bug
Jan
14
answered Can I the caption shortcode to set caption to a data attribute, and with the image's alignment intact?
Jan
8
answered page not found for single-type.php file
Jan
8
answered Using meta query ('meta_query') with a search query ('s')
Jan
2
awarded  Enlightened
Jan
2
awarded  Nice Answer
Dec
21
comment Setting up WordPress plugin's page
Consider validating your readme.txt using readme.txt validator wordpress.org/extend/plugins/about/validator
Dec
21
comment Should I use Pre Get Posts or WP_Query
I get the same feeling earlier when you explained that you want to call it multiple times. Instead of saving a query, stay with organised and structured approach.
Dec
20
comment Should I use Pre Get Posts or WP_Query
I updated the answer to included default parameters.
Dec
20
revised Should I use Pre Get Posts or WP_Query
added default values and other arguments .
Dec
19
comment Should I use Pre Get Posts or WP_Query
I am assuming you changed the custom_pre_get_posts to accept the remaining arguments. Yes, you are getting error because of add_action. add_action calls this function with single argument (i.e. $query), you should give default values to other arguments to avoid missing argument errors. like ($posttype=null, $poststatus=null...) so it can properly called by add_action.
Dec
19
answered Should I use Pre Get Posts or WP_Query
Dec
19
comment Refine custom posts by author
As you are not getting 404 error, I believe, "$wp_query->is_404" in function "author_cpt_template_redirect" is excuting. Statement "file_exists('author-'.$wp_query->query_vars['post_type'].'.php')" is what is not returning true. There could be couple of reasons. 1) $wp_query->query_vars['post_type'] is different what you are expecting 2) author-event.php is in a different directory. It should be in the same directory where this function exists.
Dec
18
awarded  Student
Dec
18
revised Setting up WordPress plugin's page
add screenshot
Dec
18
awarded  Scholar