Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My company is using the new 2014 Theme for our portfolio blog. We really like the Featured Content section on the home page.

What we would like to do is have multiple pages all with different Featured Content sections.

This is how much we have been able to work out so far.

All of the key information is held in /inc/featured-content.php.

This gets handed to functions.php under the class featured-content, and then onto featured-content.php (note the lack of /inc/) under the class twentyfourteen_get_featured_posts, and finally, gets called on page.php under the class featured-content once again.

We want to target the variable tag-name with different tags on different pages. Our plan is to create a number of page templates, all with something in them forcing featured-content to call up a different tag.

While we are moderately versed with PHP, we are not sure how to code this.

share|improve this question
    
What have you tried so far? What has worked? What hasn't? As-written, this question's scope is far too broad for WPSE. –  Chip Bennett Feb 24 at 16:24
    
I've looked into using arrays to call the tags, but nothing is working. I could use a bit of guidance. –  pappy Feb 24 at 16:27
    
"I could use a bit of guidance" - please edit your question to include any relevant code that you've already tried, and a description of what it's intended to do, and what's not working as expected. –  Chip Bennett Feb 24 at 16:30
    
Sure thing! Thanks so much for your help so far!! –  pappy Feb 24 at 17:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.