• Hi ALL

    https://www.ttmt.org.uk/wordpress

    I’m still new to WP and I’m trying to get my head around the fundamentals – this could be a really stupid question.

    I’m trying to create a Photo Gallery theme (I know there are lots available, but none do what I want.) I want my site to have sections inside of which will be galleries. In the demo I have Transport as a section which contains the galleries Boast, Planes and Cars.

    I was thinking that each section should have a page and each gallery be a post.
    Therefore I have a page for Transport that uses the page template transport.php.
    I have posts for Boats, Planes and Cars each has a category of transport and contains a NextGen slideshow gallery.

    In transport.php I have a query_posts that gets all the posts with a category of transport and displays them as links. The links then link to the posts that are shown in single.php.

    On single.php the links to Boats, Planes and Cars are gone – I know it’s because there’s no query in single.php.

    My questions after all this explanation is how do I keep the links for Boats, Planes and Cars at the top of the page? Do I need to create a page for each gallery, so a separate page for Boast, Planes and Cars?

    Hope this makes sense, it’s not too stupid and someone can help.

    ttmt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ttmt

    (@ttmt)

    Sorry I’m not trying to bump this post up but I have another question relating to this.

    If I have the pages as navigation in the header using

    <?php wp_list_pages('title_li=&sort_column=menu_order'); ?>

    How would I show the page I am on as being selected.

    If I have an about page that uses a custom template how can I show the ‘about’ link in the nav as selected when I’m on that page.

    Thread Starter ttmt

    (@ttmt)

    I found the answer to the second question.

    .current_page_item

    Thread Starter ttmt

    (@ttmt)

    I’m still having real problems with this and it looks so simple

    This is a plain html demo of what I was hoping to achieve.

    https://www.ttmt.org.uk/wp

    Can anyone tell me if this is possible with WordPress

    If it’s not I know not to waste anymore time with it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Navigation on single.php’ is closed to new replies.