• Resolved DavideL

    (@davidel)


    Hi ?? I’m looking for a way not to display a certain article in the presentation page, under the columns.
    I set the “Widget colmuns” option for the content of the columns and I don’t want articles to be displayed there; I chose to display the last 10 posts in the presentation page. I would like to know if there is a way not to display a particular one, irrespective of when it was written.
    Here’s the site: Ripetizioni Matematica Padova
    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DavideL

    (@davidel)

    Solved: in content-frontpage.php this

    /* Start the Loop */
    		$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    		$the_query = new WP_Query( array('posts_per_page'=>$temperas['tempera_frontpostscount'],'paged'=> $paged) );
    				while ( $the_query->have_posts() ) : $the_query->the_post();

    becomes this

    /* Start the Loop */
     $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    $the_query = new WP_Query( array('posts_per_page'=>$temperas['tempera_frontpostscount'],'paged'=> $paged, 'post__not_in' => array(ID)));
    	while ( $the_query->have_posts() ) : $the_query->the_post();

    Would you mind explain it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Articles in presentation page’ is closed to new replies.