Cutline Theme Support Forums » Cutline Theme Support Forums

categories for pages

(14 posts)
  • Started 4 years ago by kimbere
  • Latest reply from psychologycareers
  • This topic is not resolved

  1. Is there a way to assign categories to pages? Even if it's just code I put into each page's source.

    Posted 4 years ago #
  2. I looked at your site, seems you are using this as a content management system - like I am. The category function seems to be built into posts by WordPress - it just doesn't seem to be an option with pages.

    I got around this by making my posts look like pages - I did this by commenting out all links to navigation - this gets rid of the Next and Previous links on single page views of posts - on sitemap - on archives

    In files: Single, Main index, search

    <!-- Commented out <?php include (TEMPLATEPATH . '/navigation.php'); ?> Commented out end -->

    Hope this helps.

    BTW Your In This Section set up is very cool! I'm going to look to see if I can find the widget you used... or perhaps you could post a link to it here?

    : )
    June

    Posted 4 years ago #
  3. The other thing you can do is what I'm doing on my site. I use my categories like they were pages by having links in the top navigation that link to blogname/category/catID

    Then I created a specific template file for that category. If you read up in the wordpress codex about template hierarchies you'll find that when you click on a category name it looks for category-x.php, then category.php, then archive.php to create the page.

    Currently, as the theme comes, it's using archive.php. So if you copy that page, and rename it category-x.php (x being the category's ID number) and then kind of just throw in whatever code you want to appear before the loop that calls the posts. Then you can have static content followed by any posts tagged with that category.

    Wordpress doesn't look to kindly upon confusing the functions of categories and pages, so it is not very flexible in that sense. (As I learned the hard way.)

    You also should look at your random header images. Something goofy is going on, and you've got a smaller image overlaid over a larger image. Those images need to be optimized in some sort of software like fireworks, because they take way too long to load.

    Besides that, they are only 770px wide, and should be 970px wide to cover the entire top (unless that's not what you want)

    But either way they are being overlaid over another image you set as being the container div's background image in your style sheet so it kind of looks funky.

    If you still want that background image to be there but centered like the images being thrown on top of it sot it doesn't show when they are there, you could do this on your style sheet:

    background-position: center top;

    Posted 4 years ago #
  4. thirdeyetc,

    Wow, I love your design brotha. I've got a quick question for you. As I tediously work on my custom header I have a few issues to work out first.

    I don't quite understand your method in making the categories link to navigation links. It's brilliant, but I need a little guidance. I have set 5 separate pages,Home, Sports, Technology, and Politics. My issue is this, I want my posts categorized Sports to post on my Home page as a recent post, but also on my Sports page.

    Example, if I make a new post titled "Apple's new idouche," I want it to appear on my Home page and get filed over on the Tech page. I want my readers to be able to read posts from whatever category they are interested in, not have to flip through my entire site in order to find and pick out the tech posts. As of now, my posts only go to my home page, default, boring horseshit.

    I think you have the fix above, but I'm not quite nailing it down yet. Maybe I can get a detailed spoon-feeding? I'm kinda new to code, php and basic HTML. So, give me a break if I sound repetitive.

    Thanks in advance, thirdeye.

    Great site, keep it up!

    Nate

    Posted 4 years ago #
  5. June -
    I know, it's been months since you posted! Life intruded with my volunteer work and I'm finally getting back to it. Here's the code I put in my l_sidebar_page.php file to create the In This Section widget. Unfortunately, I'm trying to make some more changes to it and can't find the documentation. I think it's somewhere on the WordPress site dealing with parents/children.

    <div id="l_sidebar">
    <ul class="sidebar_list">
    <?php if (is_home()) { //nothing here
    } else { ?>
    <div id="submenu">
    <li class="widget">
    <h2>In This Section</h2>

      <?php
      if($post->post_parent) { // page is a child
      wp_list_pages('sort_column=menu_order&title_li= &child_of='.$post->post_parent);
      }
      elseif(wp_list_pages("child_of=".$post->ID."&echo=0")) { // page has children
      wp_list_pages('sort_column=menu_order&title_li= &child_of='.$post->ID);
      }
      ?>

    </div>

    Posted 4 years ago #
  6. thirdeye -

    Yeah, I created the header images for the 2-column Cutline layout by mistake. I have yet to go back to the original artwork and resize them. I need to do it soon, though, because I've got to get this site live.

    I love your design! Your trick with the categories is great. I don't think it will work for the kind of site I need to do, but I'll keep it in mind for the future.

    Posted 4 years ago #
  7. thirdeye -

    I'd like to chat with you about the style sheet for the thirdeye website. Would you mind emailing me at khethridge@gmail.com?

    Posted 4 years ago #
  8. thirdeye -

    Regarding: "The other thing you can do is what I'm doing on my site. I use my categories like they were pages by having links in the top navigation that link to blogname/category/catID

    Then I created a specific template file for that category. If you read up in the wordpress codex about template hierarchies you'll find that when you click on a category name it looks for category-x.php, then category.php, then archive.php to create the page.

    Currently, as the theme comes, it's using archive.php. So if you copy that page, and rename it category-x.php (x being the category's ID number) and then kind of just throw in whatever code you want to appear before the loop that calls the posts. Then you can have static content followed by any posts tagged with that category."

    I have two Archives files - I'm guessing I do the one that starts with:
    <?php
    /*
    Template Name: Archives
    */
    ?>

    Rather than the one that starts with:
    <?php get_header(); ?>

    <div id="content_box">

    Right?

    I sure appreciate your posts to this forum, have tried to model by offering some help - then asking my own questions...

    My testing site is:
    http://sdcue.org/hthitest/

    : )
    June

    Posted 4 years ago #
  9. kimbere -

    Thanks for the code for your cool sidebar feed - once I get my catagory pages changed I hope I remember to use this!

    You new site is looking good - I think I would take out the centering in the sidebars though

    : )
    June

    Posted 4 years ago #
  10. kimbere -

    Thanks for the code for your cool sidebar feed - once I get my catagory pages changed I hope I remember to use this!
    blackberry silicone cases
    iphone case manufacturer
    You new site is looking good - I think I would take out the centering in the sidebars though

    Posted 1 year ago #
  11. alexaminer68
    Member

    Tulinking - you forgot to mention this one - kabbalah website. Keep up the great work

    Posted 12 months ago #
  12. gymr4t
    Member

    Works great here's an example: bumps on penis uses it extensively.

    Posted 11 months ago #
  13. You also should look at your random header images. Something goofy is going on, and you've got a smaller image overlaid over a larger image. Those images need to be optimized in some sort of software like fireworks, because they take way too long to load. turf bonus zeturf pmu
    zeturf bonus
    pmu.fr

    Posted 11 months ago #
  14. psychologycareers
    Member

    Always so interesting to visit your site.What a great info thank you for sharing this will help me so much in my learning.
    psychology careers

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.