Feature

Feature posts for the Structure WordPress theme

Feature posts are for your home page. They display your latest feature article with a feature image and a post excerpt.

By default, the latest post with the tag “features” is displayed.

The feature image

The best way to show a feature image is to add an image URL to a custom field Value of a Key named “Feature Image” (this is case sensitive).

If there is no feature image defined by custom field, the theme will look for an image attached to your post. If there is one, it will take the first and use that as the feature image.

Feature Excerpt

The feature article only displays your post excerpt. If you want to “prettify” your excerpt or show custom text, then do this.
Scroll down to the “Optional Excerpts” box in your WordPress dasboard “Write Post” screen. Type in the text you want to see shown with the feature image.

Display posts by other tags or a category

If you want to show your feature posts by something other than the tag “features,” then look in the file /includes/feature.php for these two lines of code:

$tag_name = 'features';
$cat_name = false;

You can change the tag name to something different. Or, you can change it to use a category name by doing this:

$tag_name = false;
$cat_name = 'feature category';

Be sure to note how the apostrophes are used here. If both a tag and category name are defined, the category will overwrite the tag.