Support » Theme: Twenty Fourteen » Adding Pages to Featured Posts Area

  • Hello!

    Twenty Fourteen is a smashing theme. I have a large number of pages (rather than posts), and would like to display them in the featured section of the home page.

    How can I amend the code in a child theme so that the query for featured posts also gathers “pages” and not just “posts”? I am already tagging my pages using a plugin.



Viewing 3 replies - 1 through 3 (of 3 total)
  • I think my question is very similar. How can I get the query to include custom post type Content tagged ‘featured’?

    btw, I tried changing inc/featured-content.php but so far no luck

    // Query for featured posts.
    		$featured = get_posts( array(
    			'post_type' => array( 'post', 'project'),
    			'numberposts' => $settings['quantity'],
    			'tax_query'   => array(
    					'field'    => 'term_id',
    					'taxonomy' => 'post_tag',
    					'terms'    => $tag,
    		) );

    edit: got it to work by checking in here:

    hope you can figure it out for pages 🙂

    To: mfapsj

    Hey! I too am trying to create a website using twenty fourteen and I would like the featured content on the front page to be PAGES instead of the default setting for posts.

    If you have managed to figure out how to do this, could you please paste the code you use. FYI, I am a novice WP user but able to risk messing around with PHP and CSS files in the child theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Pages to Featured Posts Area’ is closed to new replies.