TwentyTwelve Child Theme – Customise Widget?
-
Hi All,
I am currently working on a TwentyTwelve Child Theme and would appreciate some direction/best parctise advice to have the First Front Page Widget Area display only posts from a single category?
I have looked at many ways to do this including:
// Adding the php get_posts() with relevant parameters to the page template.// Using a 3rd party plugin such as “Featured Category Posts Widget” or other similar ones.
// Or presumably create a new function in the Child Themes functions.php and assign it to the widget area somehow.
All of these approaches, whilst seemingly feasible don’t appear to be optimal and (arguably) are not making best use of functionality that is already present.
There is already a “Recent Posts” widget available and I simply want to select a single category for it to output. Therefore would the best approach be to create a duplicate of the “Recent Posts” widget and add the filter for the category I want to display and rename the duplicate widget to “Recent Posts:News” for example?
Apologies for the long-winded question, but I am begining to liken this to skinning a cat and would be really grateful for direction.
Rob
- The topic ‘TwentyTwelve Child Theme – Customise Widget?’ is closed to new replies.