Wednesday, 15 January 2014

php - Page 2 isnt loading page navi wordpress -


"postprint" itemprop = "text">

I have set up a question to query 80 posts per page based on a date date but for this page 2 does not load me. It always says a 404 error. I do not really know where I went wrong. This is the code.

  & lt; Div class = "mainvideoscon" & gt; & Lt; Div class = "videosallcenter" & gt; & Lt ;? Php $ paged = get_query_var ('paged')? Get_query_var ('paged'): 1; $ Args = array ('post_type' = & gt; array ('post', 'video', 'featured', 'spotlight'), 'page' = & gt; $ paged); $ Wp_query = New WP_Query ($ Args); If (has_posts ()): while ($ wp_query-> is_poz ()): $ wp_query-> The_post (); If ($ CURRENT_DATE = get_the_date ('dm-y')!) {Echo ' 

Thanks in advance for help

Instead of your $

With this one arg variables

  $ args = array ('post_type' = & gt; array ('post', 'video', 'special', 'lights'), , 'Post_status' = & gt; 'publish', 'endorsement' = & gt; true, 'posts_per_page' => '80',);  

No comments:

Post a Comment