99 reputation
13
bio website designzzz.com/category/…
location Lahore, Pakistan
age 25
visits member for 2 years, 4 months
seen yesterday
stats profile views 43

Artist by soul and programmer by profession! Also a blogger.


1d
comment Multiple homepage layouts as selected by user from theme options
i defined paged in start as well, but it didn't fixed. i need a solution mainly where i can get users to use any layout of their choice, its not just pagination but also if portfolio layout is switched on, general posts permalinks stops working , vice versa...
May
11
asked Multiple homepage layouts as selected by user from theme options
May
10
comment Pagination problem in custom post type used as front page
looks like i am panicking too much today... added && $qry->is_main_query() in the if statement check , and it fixed the issue. sorry to bug you
May
10
comment Pagination problem in custom post type used as front page
Hey dude again, sorry , i made the answer as marked, but as i am using the pre get.. it makes my menus stop working... really strange.. please cehck my code : function alter_query_wpse_99042($qry) { $options = get_option('romeo'); if($options['w3t_layout_option'] == 'portfolio2' || $options['w3t_layout_option'] == 'portfolio3' || $options['w3t_layout_option'] == 'portfolio4'){ $qry->set('post_type','portfolio'); } } add_action('pre_get_posts','alter_query_wpse_99042');
May
10
accepted Pagination problem in custom post type used as front page
May
10
comment Pagination problem in custom post type used as front page
cool, yup you were right :) fixed it , thanks!
May
10
comment Remove specific published page when theme deactivated
Hey dude, i followed your advice and is working great on the theme i am working on. but this way i am stuck with a little pagination issue, please check this question : wordpress.stackexchange.com/questions/99042/… thanks
May
10
comment Pagination problem in custom post type used as front page
k as you clarified in your last comment, i used gloabl wp_query to for the loop and made changes according to the links you provided. but its still not working, see updated question please.
May
10
revised Pagination problem in custom post type used as front page
added 71 characters in body
May
10
comment Pagination problem in custom post type used as front page
Tried few variations as per the links your provided. it seems i am getting this issue because files are included in the front-page.php depending on what layout user is selecting from the theme option.. maybe?
May
10
comment Pagination problem in custom post type used as front page
just updated the question with custom query.. can you please check. and now pagination stopped showing up.
May
10
revised Pagination problem in custom post type used as front page
changed main query to custom query loop
May
10
comment Pagination problem in custom post type used as front page
Hello, thanks it fixed the issue but break everything else, i mean what u did is altered the main query, as i am using 4 different templates.. it is making all queries post type as portfolio. so as i gathered from your answer, what i need to do is not use query_post. let me try it and get back to you
May
10
asked Pagination problem in custom post type used as front page
May
5
accepted Remove specific published page when theme deactivated
May
5
comment Remove specific published page when theme deactivated
bravo my friend! that's awesome suggestion and perfectly makes sense! thank you :) This is my first theme deveopment, would you like to take a preview once i am done ?
May
5
awarded  Autobiographer
May
5
comment Remove specific published page when theme deactivated
hello just updated
May
5
revised Remove specific published page when theme deactivated
better explanation
May
5
comment Remove specific published page when theme deactivated
Hello, yes i understand that, but what i am trying to achieve is provide 3-4 homepage layouts. Do you have a better suggestion for that? cheers