Playing with WordPress: Categories, Tags, Simply Exclude, and Page Templates
September 17, 2012Convert Categories to Tags and Vice Versa
- Go to the WordPress dashboard
- Go to Tools > Import
- Choose the “Categories and Tags Converter”
- Install it through the prompt
- Select which categories you wish to convert to tags (or click at the top to switch to converting tags to categories) and confirm
Exclude Categories and Tags from the Home Page
- Install the “Simply Exclude” plugin
- Set Home Page from the default “Include only” to “Exclude” in the “Simply Exclude” settings
- Go to the categories section of the WordPress dashboard
- Check the checkboxes next to which sections you would like to exclude from the home page
Note: it is also possible to do this by editing the WordPress functions.php file.
Create a Page with Full Text Posts from One Category
- Go to the WordPress dashboard, Appearance > Editor
- Open up your “loop.php” file, or the file that contains your while loop with
has_posts
- Copy that, and paste it into a new php file titled
name-of-your-page-template.php
- After
get_header();
addquery_posts('cat=13');
, replace 13 with the ID of the category or categories you want - Find the if-statement containing
is_search
and replacethe_excerpt();
withthe_content();
- Upload your php file into your theme directory
- Create a new page in WordPress, set it to the page template you just created, and publish it