• Hi there,

    Do you guys happen to know what the easiest way is to get a button in the header linked to a category? Let’s say a button with the name “photoblog” linked to the category path “photoblog” ? Thanks!

    Regards,
    DM

Viewing 5 replies - 1 through 5 (of 5 total)
  • No, we don’t know unless you give a link, you name your theme, we see the code etc.

    Thread Starter betwixt

    (@betwixt)

    Moshu, thanks for your reply. I’m using K2. I tried making a template which calls the corresponding category, but this seems to break the ajax functionality of the site.

    The template is:

    <?php /*
        Template Name: photoblog
    */ ?>
    <?php get_header(); ?>

    [long code moderated]

    Thank you in advance.
    Regards,
    DM

    I tried making a template which calls the corresponding category,

    That’s the wrong way of thinking!
    You should use Category_Templates and NOT Pages for displaying posts in a category.

    Thread Starter betwixt

    (@betwixt)

    I’m sure you are a little irritated by telling that over and over again to people, thinking they don’t read. Well I did read quite alot, and did not find a good example of what the contents should be in a category template. I see a lot of bits and pieces, but an example template with a dissection next to it for instance, would make things much clearer…

    I also need help on the same thing.
    I made a page a page called “category.php” by duplicating archive.php
    But now how do i set the page to a catgory and then get it shown on my menu?

    Sorry im still VERY new to wordpress. (moved from blogspot)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘header button link to category’ is closed to new replies.