• Resolved LValfre

    (@lvalfre)


    I have a site with a few different categories and many posts. Currently I have a page that introduces the category and uses a plug-in to list category posts below it. I did this b/c the default category page didn’t allow static text/design etc.

    The problem is the URL structure. I would prefer url.com/category to be that page. Instead I’ve had to make a static page url.com/categorypage.

    Currently, any post will be url.com/category/post which is perfect.

    I would like url.com/category to be a page with content, as well as the list of category posts.

    This way the URL looks clean and organized.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Not really following the problem.

    But the category page is the categories.php template. Does your theme have this template?

    Thread Starter LValfre

    (@lvalfre)

    I’m on twenty ten theme so it’s the default. Yes, I do have the category.php template.

    Okay I’ll try to rex-plain the problem.

    I want url.com/category to have static content as well as a list of category posts.

    Currently url.com/category uses the default template and just shows a list of categories. So I made a static page and used a plug-in to list my category posts on that page. The url, however, is url.com/staticpage.

    Does that make more sense?

    Make a post in that category and make it sticky so it shows up on top being your static content?

    Thread Starter LValfre

    (@lvalfre)

    WP Burn,

    I’m not sure what making it sticky means. Also, I’m hoping to fix this the right way and not just put a band aid on it, if that’s what you’re recommending.

    You can check out the site: www. sea buck thorn insider .com

    Simply put:

    myurl.com/health-benefits is my category and all posts are shown. If i click on a post, it’s url is health-benefits/post. So that’s all great.

    If I click on my top navigation link health benefits, it goes to myurl.com/sbt-health-benefits which is a static page I made to tell about the category before listing all the posts. I would prefer this to simply be myurl.com/health-benefits so clicking on the category’s posts doesn’t change the url path.

    Sticky is a normal option above your publish button under visibility.

    You select that and that one post would remain on the top of the category page while other posts will rotate down as you post more.

    Thread Starter LValfre

    (@lvalfre)

    I don’t want it to stick to my front page though since it’s just a default blog on my front page. Will making it stick do this?

    Do you make use of category descriptions?

    $category_description = category_description();
    					if ( ! empty( $category_description ) )
    						echo '<div class="archive-meta">' . $category_description . '</div>';

    that bit of code from 2010’s category.php makes me think that if you fill out the category description for each cat, it will be displyed on the correspoding category archive page

    Or is that not robust enough for your needs?

    Thread Starter LValfre

    (@lvalfre)

    While that may be the case, and I haven’t tried it yet, it’s not quite robust enough for my boss’s needs. : )

    We have a short write-up, cross links, and an image for each category. Feel free to view the link above. Just remove the spaces.

    I’m quite sure Joomla and other CMS packages can handle this. The goal is simple: to have a clean and easy to follow url structure.

    myurl.com/health benefits/ health benefit post

    myurl.com/education/ educational post

    myurl.com/buying guide/ buying guide post

    etc.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Category Page & URL Structure’ is closed to new replies.