Twenty Fourteen
Adding Pages to Featured Posts Area (4 posts)

  1. Ben B
    Posted 1 year ago #


    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.



  2. mfapsj
    Posted 1 year ago #

    I think my question is very similar. How can I get the query to include custom post type Content tagged 'featured'?

  3. mfapsj
    Posted 1 year ago #

    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: http://wordpress.org/support/topic/custom-post-type-tagscategories-archive-page?replies=3

    hope you can figure it out for pages :)

  4. angryfogel
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic