WP Silo - How to add unique content (category description) to each category page!?....

by satrap
34 replies
  • SEO
  • |
I have been trying to create silo structure on an already live site with about 400 posts on it. But I am stock.

I was hoping Yukon or anyone else could help shed some light on this for me. And given that many of us here use WP, I think lots of people may find it useful to learn about this.


Here is the problem; I have a blog with a few hundred pages, and a whole bunch of categories.

How do you add unique content for each category page?... I mean, with WP there is only one category.php. So, you can't just go in and add your content in the php file, since it will then display the same content on every category page. So how do you get around that?... Or is there even any way to do that?...

I know I could create new page for each category, then linking from each page to posts in each category. but that is time consuming, especially wen you add new posts every day. So you will have to go back to those pages and add links to new posts.

Thats why I am wondering if there is a way to add a little unique content (description of the category perhaps) using the the actual category pages that are already there.

Thank you in advance.
#add #category #content #description #page #silo #unique
  • Profile picture of the author ilee
    Originally Posted by satrap View Post

    I know I could create new page for each category, then linking from each page to posts in each category. but that is time consuming, especially wen you add new posts every day. So you will have to go back to those pages and add links to new posts.
    Not necessarily, all you have to do is attach a category to the page as well and display related posts and pages by category.
    Signature
    --~***~--


    --~***~--
    {{ DiscussionBoard.errors[7591386].message }}
  • Profile picture of the author yukon
    Banned
    [edit]
    This plugin only works If you include a category.php template file in your Wordpress theme.




    I'm usually not a fan of plugins but sometimes they're useful If a theme doesn't have a built in option that you need.

    This plugin will add a text editor directly on the Category page where you can create all the unique content you want. What the plugin does is replace the already existing Category-Description so it's not creating any new tables in the MySQL database, it's simply adding a better text editor on the Category Admin. page.

    The plugin code is very compact & adds a lot of possibilities to the WP-Category page, so it's a pretty good plugin IMO.

    I've tested this on a couple of themes, one theme the plugin didn't do anything, on the default WP Twenty Twelve theme the plugin worked perfect. So keep in mind this might not help everyone (depending on their theme). Test the plugin & see what happens.

    Here's a screenshot of the plugin working on my offline test blogs Category Admin. page, looks like the regular WP text editor on the WP-Post editor page.





    Keep in mind this plugin is only adding content to the Category page, it's not removing any existing duplicate Post snippets that you might already have, you'll have to modify your category.php template page If you want to remove any existing content in order to have a completely unique page. If you know HTML & basic PHP you should be able to figure out the category.php page, most likely you'll see a Loop code that displays all the Post in a single category.

    Make sure to backup everything before doing any edits on the theme files.
    Signature
    Hi
    {{ DiscussionBoard.errors[7591931].message }}
  • Profile picture of the author Oranges
    Its a bit complicated but can be done. Im doing this on all my sites. Here we go...

    1. First of all to remove the base "Category" in the category page url, you need to install this plugin called "WP No Category Base" For instance with this permalink structure /%category%/%postname% you'll get www.yourdomain.com/category/catgory-name/article-title-url ..so you can remove that base "category" from the permalink url by using this plugin.

    2. If you want SEO meta titles and description for your category pages you can either use Thesis theme (They have it as an option in that theme) or else if you are using some other theme then you can use this plugin http://wordpress.org/extend/plugins/category-seo-meta-tags/ with "All in one seo pack" plugin..because it works with that only. (Go to installation page of this plugin to download their already edited all in one seo pack plugin to save time and code editing work.)

    3. Now on to the main part which is to create separate category pages for each category with its unique content. There is this fucntion in wordpress that allows to create unique category pages for each category, and for that you have to separately name them with their category ID number. For instance if you create a new category in wp-admin, mouse hover that particular category name in wp-admin >> posts >> category and you will be able to see it at the bottom where url destination is usually shown whenever we mouse hover a link. For example if you mouse-hover a category it will show you something like this...

    http://www.yorudomain.com/wp-admin/e...edit&taxonomy=category&tag_ID=8&post_type=post

    In this case category ID is 8

    Now copy the code from category.php file and paste on to the new file and name it as category-8.php. This will be your new unique category page for your specific category with ID 8.

    So just like that you can find the category ID of each unique category you make in wordpress and then create a new category file and name it as i aforementioned. category-1.php, category-2.php, category-3.php ...and so on. Just find the cat ID and make a new file for it.

    Now on these cat page templates you can add your text content, images, videos with HTML markup and meta tittle, description can be managed with that plugin i mentioned in step 2.

    With this setup you'll have unique text content on top of the cat page and then the usual "recent posts" in that category will continue to show at the bottom. I personally use <?php the_excerpt(); ?> instead of <?php the_content(); ?> to avoid displaying full posts on cat pages, just to avoid dup. content.

    It actually works great if you constantly want to add a bit of fresh content on that particular category page through your new posts.
    Signature

    {{ DiscussionBoard.errors[7591947].message }}
  • Profile picture of the author yukon
    Banned
    Oranges, try that plugin/link I posted above, then you'll only have to edit a single category.php template page.

    If you know HTML, basic PHP, & have edited WP theme template files before, you'll be up & running in a few min.
    Signature
    Hi
    {{ DiscussionBoard.errors[7591962].message }}
    • Profile picture of the author Oranges
      Originally Posted by yukon View Post

      Oranges, try that plugin/link I posted above, then you'll only have to edit a single category.php template page.

      If you know HTML, basic PHP, & have edited WP theme template files before, you'll be up & running in a few min.
      Thanks! Yes that will work great too if the purpose is just to add content on the cat page.
      Signature

      {{ DiscussionBoard.errors[7591984].message }}
  • Profile picture of the author Oranges
    Great example of ranking category page with this setup is this page http://www.sugarrae.com/affiliate-marketing/ she's ranking this category page for "Affiliate Marketing".

    At the top of this page she has static unique and optimized content and then every time she posts new content related to this category it gets displayed at the bottom which adds to fresh content thing that Google thrive on.

    I have had great success with this setup and specially if you have tightly closed silo and good internal links.
    Signature

    {{ DiscussionBoard.errors[7591995].message }}
    • Profile picture of the author satrap
      Originally Posted by Oranges View Post

      Great example of ranking category page with this setup is this page Affiliate Marketing she's ranking this category page for "Affiliate Marketing".
      Thanks Oranges. Thats exactly what I have in mind. In fact I have already created a few pages to replace as category pages, and they look exactly the same.

      Originally Posted by yukon View Post

      I'm usually not a fan of plugins but sometimes they're useful If a theme doesn't have a built in option that you need.

      This plugin will add a text editor directly on the Category page where you can create all the unique content you want. What the plugin does is replace the already existing Category-Description so it's not creating any new tables in the MySQL database, it's simply adding a better text editor on the Category Admin. page.

      The plugin code is very compact & adds a lot of possibilities to the WP-Category page, so it's a pretty good plugin IMO...

      Thanks Yukon. Yeah, I am not a fan of plugins either. I do try to get the functions without plugins. But my coding knowledge is not much, so when it comes to things like this scenario, I am kind of clueless.

      I will try the plugin you mentioned to see if it works with theme. I am using WP-Cleare (premium theme by SoloStream). Hopefully it will work out.


      Originally Posted by yukon View Post

      Keep in mind this plugin is only adding content to the Category page, it's not removing any existing duplicate Post snippets that you might already have, you'll have to modify your category.php template page If you want to remove any existing content in order to have a completely unique page. If you know HTML & basic PHP you should be able to figure out the category.php page, most likely you'll see a Loop code that displays all the Post in a single category.
      Make sure to backup everything before doing any edits on the theme files.
      Yeah, I have already removed that part (the showing up of the excerpt which I guess makes for duplicate content. So, it will just show the links to posts). I am also planning to add a sentence or two unique text for some of the main posts of the category along with links to each post. But this will be right above the actual links to all posts.

      By the way, extending on that last point - I could in theory, if I wanted to, get rid of the code for the category page that shows up the links to posts, so then I could (using the plugin you mentioned) add a short unique description to each post along with their link, right?... I am saying this, since I am guessing there is no way to actually add a short sentence description under each link without having to do this manually (making category not even show links, and adding links and description manually)... No?...



      Thanks again everyone. I am going to see if I can get it working. I probably will be back to bother you guys more, since I will probably hit road blocks on the way. Either way, thanks again guys. I really appreciate it.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[7592031].message }}
  • Profile picture of the author satrap
    Ok Guys, unfortunately the plugin doesn't work with the theme. it just doesn't show any change.

    So, I think I am going to try to do it manually with Oranges' method.

    I tested it with 2012 theme, and as Yukon mentioned, it works perfectly. But I did notice something there - It actually shows on every page of the category (category A -page 1... category B- page 2...). That creates the duplicate content issue. How would you deal with that part though?...

    By the way, is there any code that could be added to the theme to make it compatible with this plugin?...

    Thanks again.
    Signature
    60 Awesome Ways to Make Money Without a Job
    .................................
    Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
    {{ DiscussionBoard.errors[7592099].message }}
    • Profile picture of the author yukon
      Banned
      Originally Posted by satrap View Post

      By the way, is there any code that could be added to the theme to make it compatible with this plugin?...

      Thanks again.

      I might look into that If I have time, instead of a plugin just make a simple category.php template page that can be added to later on If anyone needs to customize, then hard code the plugin code inside the functions.php template.
      Signature
      Hi
      {{ DiscussionBoard.errors[7592229].message }}
    • Profile picture of the author Rndmals
      Originally Posted by satrap View Post

      Ok Guys, unfortunately the plugin doesn't work with the theme. it just doesn't show any change.

      So, I think I am going to try to do it manually with Oranges' method.

      I tested it with 2012 theme, and as Yukon mentioned, it works perfectly. But I did notice something there - It actually shows on every page of the category (category A -page 1... category B- page 2...). That creates the duplicate content issue. How would you deal with that part though?...

      By the way, is there any code that could be added to the theme to make it compatible with this plugin?...

      Thanks again.
      If you are flexible with changing themes, look into Clickbump. Not only you have the ability to create the full-blown, keyword rich category landing pages right out of the box without any plug-ins, you can also showcase them on the home page in several different layout options with thumbnail images, etc:

      Best Digital Cameras

      All templates: Premium Skin Packages Made for ClickBump Framework
      {{ DiscussionBoard.errors[7592254].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by Rndmals View Post

        If you are flexible with changing themes, look into Clickbump. Not only you have the ability to create the full-blown, keyword rich category landing pages right out of the box without any plug-ins, you can also showcase them on the home page in several different layout options with thumbnail images, etc:

        I don't even see a Category page on that site (any link?). I see the URL /category/... but no actual page, but that returns a 404. The URLs don't look very focused, kind of random looking.
        Signature
        Hi
        {{ DiscussionBoard.errors[7592276].message }}
  • Profile picture of the author yukon
    Banned
    I think I figured out the problem, why the plugin doesn't work on all themes.

    Wordpress has a template page hierarchy, If your theme doesn't have a category.php then WP automatically looks for the archive.php template. The plugin is only looking for the category.php so If the category.php isn't found then plugin doesn't do anything.

    I went back & looked at my first theme that wouldn't work with the plugin, that first theme didn't have a category.php template page, it had the archive.php template page. I added a new category.php page & the plugin now works on the first theme.

    Double check that your theme actually has a category.php template page, If it doesn't just create a new template page then go back & test the plugin again.

    I copied the category.php template page from the default WP theme (Twenty Twelve), then made a few small edits.

    Still looking at the code, I see a sidebar title="" in a hyperlink that is copying the entire Category article, lol.
    Signature
    Hi
    {{ DiscussionBoard.errors[7592215].message }}
    • Profile picture of the author satrap
      Originally Posted by yukon View Post

      I think I figured out the problem, why the plugin doesn't work on all themes.

      Wordpress has a template page hierarchy, If your theme doesn't have a category.php then WP automatically looks for the archive.php template. The plugin is only looking for the category.php so If the category.php isn't found then plugin doesn't do anything.

      I went back & looked at my first theme that wouldn't work with the plugin, that first theme didn't have a category.php template page, it had the archive.php template page. I added a new category.php page & the plugin now works on the first theme.

      Double check that your theme actually has a category.php template page, If it doesn't just create a new template page then go back & test the plugin again.

      I copied the category.php template page from the default WP theme (Twenty Twelve), then made a few small edits.

      Still looking at the code, I see a sidebar title="" in a hyperlink that is copying the entire Category article, lol.
      Thanks Yukon. Yeah, I know my them doesn't have category.php, it has archive.php. I noticed it the other night when I was playing around with it.

      So, I would basically copy the archive.php template and paste it into a new template named category.php, then simply delete the archive.php... right?....

      Thanks very much Yukon.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[7592247].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by satrap View Post

        Thanks Yukon. Yeah, I know my them doesn't have category.php, it has archive.php. I noticed it the other night when I was playing around with it.

        So, I would basically copy the archive.php template and paste it into a new template named category.php, then simply delete the archive.php... right?....

        Thanks very much Yukon.

        I just copied the Twenty Twelve category.php, made a few edits.

        Hang on a min. I'll upload what I have from my test site.
        Signature
        Hi
        {{ DiscussionBoard.errors[7592281].message }}
  • Profile picture of the author yukon
    Banned
    I've attached the category.php file, unzip & make any edits you need. Your theme might not need the header/sidebar/footer inside the category file.

    The important part of the code is between these two comment tags:

    <!-- Start - This displays the unique category content -->
    ...code here...
    <!-- End - This displays the unique category content -->
    Signature
    Hi
    {{ DiscussionBoard.errors[7592310].message }}
    • Profile picture of the author satrap
      Originally Posted by Rndmals View Post

      If you are flexible with changing themes, look into Clickbump. Not only you have the ability to create the full-blown, keyword rich category landing pages right out of the box without any plug-ins, you can also showcase them on the home page in several different layout options with thumbnail images, etc:
      Thanks so much for that. But the theme I am going to use is a new theme I just bought. I have been looking for this theme for a long time. It is eaxactly what I wanted. So, for now I am going to stick with that. Either way, thank you very much for the suggestion.

      Originally Posted by yukon View Post

      I've attached the category.php file, unzip & make any edits you need. Your theme might not need the header/sidebar/footer inside the category file.

      The important part of the code is between these two comment tags:



      Thank you so much for going through all that trouble Yukon.


      I got it working with the code you provided.

      I simply copied the archive.php and paste it into a new template and named it category.php. Then I added your code (the important part you mentioned above) in the appropriate section, and uploaded the file. Its working great.

      I have attached the actual file. I would appreciate it if you could take a look to see if all looks ok.



      As far as I can see, its working great and its allowing me to achieve what I wanted to do. However, the problem I mentioned above (the same content showing up on every page of the category (category page 1 - page 2 - page 3, and so on).

      How would we deal with that as that would create the duplicate content issue?...


      Yukon, I really appreciate you taking time out of your busy schedule to go to this length to help out.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[7594806].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by satrap View Post

        As far as I can see, its working great and its allowing me to achieve what I wanted to do. However, the problem I mentioned above (the same content showing up on every page of the category (category page 1 - page 2 - page 3, and so on).

        How would we deal with that as that would create the duplicate content issue?...


        Yukon, I really appreciate you taking time out of your busy schedule to go to this length to help out.

        I have it figured out, I have the code setup for pagination on the category page & only showing the custom category description on the 1st page, the rest of the pages (Next Page) don't show the category description.

        I'll post the code after I do some cleanup.
        Signature
        Hi
        {{ DiscussionBoard.errors[7595504].message }}
  • Profile picture of the author Rndmals
    Satrap, see if the theme developer offers any kind of support (most of the premium paid products do, and should).
    {{ DiscussionBoard.errors[7595129].message }}
  • Profile picture of the author yukon
    Banned
    Try this new code instead of the code I posted earlier in the thread.

    This code works with the category description editor plugin.
    Signature
    Hi
    {{ DiscussionBoard.errors[7595585].message }}
    • Profile picture of the author satrap
      Originally Posted by yukon View Post

      Try this new code instead of the code I posted earlier in the thread.

      This code works with the category description editor plugin.
      Thank you so much Yukon. It works beautifully.

      I wish I could thank you a thousand times man. I really appreciate you taking this much time to help me out. I literally don't have any words to describe how thankful I am. Thanks a million Yukon.

      By the way, do I still need that original archive.php, or can it be deleted since our new category.php is doing its job?...
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[7597719].message }}
  • Profile picture of the author yukon
    Banned
    Originally Posted by satrap View Post

    Thank you so much Yukon. It works beautifully.

    I wish I could thank you a thousand times man. I really appreciate you taking this much time to help me out. I literally don't have any words to describe how thankful I am. Thanks a million Yukon.

    By the way, do I still need that original archive.php, or can it be deleted since our new category.php is doing its job?...

    Your welcome.

    It might be a good idea to check all your template files in the theme & see If any of the templates are calling the archive.php template page, that way you can make sure that you don't have any broken pages.
    Signature
    Hi
    {{ DiscussionBoard.errors[7597763].message }}
    • Profile picture of the author satrap
      Originally Posted by yukon View Post

      Your welcome.

      It might be a good idea to check all your template files in the theme & see If any of the templates are calling the archive.php template page, that way you can make sure that you don't have any broken pages.
      Yeah, I figured I could do that. So I have been going through all the files.
      Thanks again Yukon.
      Signature
      60 Awesome Ways to Make Money Without a Job
      .................................
      Check out my blog Survey Satrap featuring honest reviews of paid survey sites.
      {{ DiscussionBoard.errors[7599493].message }}
  • Profile picture of the author yukon
    Banned
    @ Michael_Le

    Looks like you either added or deleted a <div> tag. Double check that all <div> tags have a matching closing </div> tag.
    Signature
    Hi
    {{ DiscussionBoard.errors[7705759].message }}
  • Profile picture of the author ilee
    try <?php endif; ?> instead of <?php endif;>
    Signature
    --~***~--


    --~***~--
    {{ DiscussionBoard.errors[7706274].message }}
  • Profile picture of the author ilee
    could just be a styling thing. I could have a look at the page for you if you wanted.
    Signature
    --~***~--


    --~***~--
    {{ DiscussionBoard.errors[7706559].message }}
  • Profile picture of the author ilee
    Try this. It's quite hard without seeing the actual page lol

    <?php
    /**
    * The template for displaying Category pages.
    *
    * Used to display archive-type pages for posts in a category.
    *
    * Learn more: Template Hierarchy « WordPress Codex
    *
    * @package WordPress
    * @subpackage Twenty_Twelve
    * @since Twenty Twelve 1.0
    */

    get_header(); ?>

    <section id="primary" class="site-content">
    <div class="entry-content"><p>

    <!-- Start - This displays the unique category content -->

    <?php if ( is_category() ) : ?><?php if ( get_query_var('paged') < 2 ) {echo category_description();} ?><?php endif;> <!-- End - This displays the unique category content -->

    </p></div><!-- #content -->
    </section><!-- #primary -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Signature
    --~***~--


    --~***~--
    {{ DiscussionBoard.errors[7706770].message }}
  • Profile picture of the author yukon
    Banned
    The screenshot looks like a broken <div> to me, the way the content text is overlapping the sidebar. PM sent.
    Signature
    Hi
    {{ DiscussionBoard.errors[7707235].message }}
  • Profile picture of the author yukon
    Banned
    @ Michael_Le

    I copied your archive.php & made a category.php, the code that's creating the unique category page content is between these two comment tags:

    <!-- Start Unique Category Content -->
    ........code
    <!-- Stop Unique Category Content -->
    Paste the attached category.php into your theme files.

    This works with the custom category content plugin I posted in this thread.
    Signature
    Hi
    {{ DiscussionBoard.errors[7707488].message }}
    • Profile picture of the author Michael_Le
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[7709994].message }}
      • Profile picture of the author super roach
        Thanks this thread helped me with my wp site.
        {{ DiscussionBoard.errors[7711253].message }}
      • Profile picture of the author yukon
        Banned
        Originally Posted by Michael_Le View Post

        hey Yukon,

        thanks for this, it works now...

        anyway to make it show posts excerpts rather than the whole post?

        thanks

        P.S Do you know any plugins that can change the order of the posts?

        I was going to post the php code & let you make the changes but WF keeps breaking the php code. I made the changes to the category.php & attached to this comment (easier that way).

        For changing the full post to excerpt look for the code between these comments:
        <!-- Start Category Post Excerpts -->
        ...code
        <!-- Stop Category Post Excerpts -->
        ***********************************************

        For changing the order of the post displayed in the category page look for these comments:
        <!-- Start Category Post Order -->
        ...code
        <!-- Stop Category Post Order -->
        You can switch back & forth between ascending/descending post order by changing this code (actual code is in red):
        • ascending post order = &order=asc
        • descending post order = &order=desc

        Ascending & descending post order is based on the blog post date/time.
        Signature
        Hi
        {{ DiscussionBoard.errors[7711282].message }}
  • Profile picture of the author Simin
    Hi guys, little bit confuse with all of this plugin, category.php, archive.php and on and on...
    I don't know much about coding. but i use the IF code like this... :
    <?php if(is_category('6')) { // cat. ID 6 ?>
    <meta name="description" content="..." />
    <meta name="keywords" content="..." />
    <?php } elseif(is_category('8')) { // cat. ID 8 ?>
    <meta name="description" content="..." />
    <meta name="keywords" content="..." />
    <?php } elseif(is_category()) { // generic (any other category) ?>
    <meta name="description" content="..." />
    <meta name="keywords" content="..." />
    <?php } else { // is not a category listing ?>
    <meta name="description" content="..." />
    <meta name="keywords" content="..." />
    <?php } ?>
    I use it like that... yes it's manual edit the category.php or archive.php file.. and must added one by one each category description.
    I use it for a long time, but i dont test it. I dont do testing with other method and dont know if it will help with SERP like sugarraecom/affiliatemarketing get...

    I think this is will help if you got error using the above method...
    just confuse and try to help.. see ya
    {{ DiscussionBoard.errors[7714603].message }}
  • Profile picture of the author Michael_Le
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[7723227].message }}
  • Profile picture of the author Curtis2011
    Wordpress is not really designed to build silo-style websites.

    Sorry, but I can't help you but to say that perhaps you should make a static non-WP site if you plan to use a silo structure.
    {{ DiscussionBoard.errors[7723588].message }}
    • Profile picture of the author yukon
      Banned
      Originally Posted by Curtis2011 View Post

      Wordpress is not really designed to build silo-style websites.

      Sorry, but I can't help you but to say that perhaps you should make a static non-WP site if you plan to use a silo structure.

      Static HTML sites are fine, but CMS sites are easier to manage (IMO) once the site starts getting bigger.

      Wordpress is a CMS, it's purpose is to pull data from a database, your confusing the front end Wordpress theme with what Wordpress is capable of doing. Wordpress will do anything you want it to do, you just have to tell it what you want (ex: display relevant internal links, or display the typical random internal links).
      Signature
      Hi
      {{ DiscussionBoard.errors[7723668].message }}
  • Profile picture of the author getwhatchuwant
    Never Mind, solved my issue
    {{ DiscussionBoard.errors[8369915].message }}

Trending Topics