Home › Community › Support › Problem to set a news section
Tagged: news, Pagination, section, wordpress
This topic contains 2 replies, has 2 voices, and was last updated by danny 5 years, 1 month ago.
Of course I would like to congratulate you for this great work.
I tell you that I’m doing a news section with the following code:
<? Php $ temp_query = $ WP_Query; ?>
if (isset ($ _ GET [ ‘cat’]) &&! empty ($ _ GET [ ‘cat’]))
query_posts ( ‘cat =’ $ _ GET [ ‘cat’].);
query_posts (array ( ‘category__in’ => array (1,4,5), ‘posts_per_page’ => 3 ‘orderby’ => ‘title’, ‘order’ => ‘ASC’));
<? Php if (have_posts ()) while (have_posts ()): the_post (); ?>
<Div id = “post – <? Php the_ID ()>?” <? Php post_class (); ? >>
<Div class = “col-LG-6 col-md-6 col-sm-12”>
<Div class = “box-news-sec”>
“class =” ti-news-sec “>
<Div class = “date-news-sec”>
<? Php the_time ( ‘j \ d \ e F \ d \ e Y’)?>
<Div class = “news-thumbnail-sec”>
<? Php echo do_shortcode (get_post_meta (get_the_id (), ‘img_noticia_top’, true)); ?>
“class =” ti-news-sec “> <? php the_title (); ?>
<P style = “text-align: center;”>
<? Php the_excerpt (); ?>
<( ‘<Div class = “page-link”>’ __ ( ‘Pages’.,’ TwentyTen ‘), after’ => ‘</ div>’) php wp_link_pages array ( ‘before’ =)?> ; ?>
<? Php endwhile; ?>
You happen to know as you could add a button panel paging or to incorporate an infinite scroll? I sought this solution and I am not sure if the theme is a condition that prevents me from doing this.
From already thank you very much for your time, the url is: http://nuevo.kdoce.cl/noticias/
Sorry, the correct code:
You have a lot going on here. I’m not even sure where to start.
The theme by design will not interfere with ANYTHING that it looks like you are doing. You might get with Trisha on here she has figured out some one page stuff that might interest you.
You must be logged in to reply to this topic.
DevDmBootstrap3 created by Danny Machal