Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Add category nav to listing detail?

  1. #1
    Thread Starter
    chifen's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    326
    Thanks
    18
    Thanked 13 Times in 12 Posts

    Add category nav to listing detail?

    Hi i try to move category bar to listingdetail!

    Is this possible ?





  2. #2
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add category nav to listing detail?

    Do you mean on the actual ad page?

  3. #3
    Thread Starter
    chifen's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    326
    Thanks
    18
    Thanked 13 Times in 12 Posts

    Re: Add category nav to listing detail?

    hi ..

    look at this link, here you have main category nav: http://wpclassipress.com/demo/category/auto/

    and here is listing detail but only with subcategory nav http://wpclassipress.com/demo/2009-nissan-nismo-370z/

    and i want to ad main category nav to listing detail..? so you can choose another category without going back..

  4. #4
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add category nav to listing detail?

    Ah, that's the breadcrumb.

  5. #5
    Thread Starter
    chifen's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    326
    Thanks
    18
    Thanked 13 Times in 12 Posts

    Re: Add category nav to listing detail?

    he he....and who understand how to config this?

  6. #6
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add category nav to listing detail?

    Settings > Breadcrumb NavXT ?

  7. #7
    Thread Starter
    chifen's Avatar
    Join Date
    May 2009
    Location
    Sweden
    Posts
    326
    Thanks
    18
    Thanked 13 Times in 12 Posts

    Re: Add category nav to listing detail?

    Yes i now where i can find it, but not how to change it ? if you now, please share...

  8. #8
    dubya's Avatar
    Join Date
    May 2009
    Location
    Canada
    Posts
    1,000
    Thanks
    115
    Thanked 107 Times in 93 Posts

    Re: Add category nav to listing detail?

    If I understand correctly, I think you want to have the category bar as seen on the main page show up on other pages as well as the breadcrumbs.
    I'm a novice when it comes to php, but I think we would want something like the code below added to other templates.
    This code snippet is from the top of the Main Index Template:

    Code:
    <ul id="catnav">
                <li<?php if ( is_home() ) { echo " class=\"current-cat\""; } ?>><?php _e('Latest Listings','cp'); ?>
    			<?php wp_list_categories('show_count=0&hide_empty=true&orderby=name&order=asc&title_li='); ?>
    			[*]<div class="clear"></div>[/list]
    		
    		<?php if ( is_category() && function_exists('bcn_display')) { ?>	
    			<div class="subnav">
    				<?php if(function_exists('bcn_display')) { bcn_display(); } ?>
    			</div>
    If someone knows how to get this working on the Single Post template (or any other page for that matter) that would be awesome. I would also like to add it to my about page at the very least.

    I tried, but have no clue what I'm doing. It's a good thing I know enough to backup the original file first.


    - Dubya


    Wait!!! I got it... will post in 1 sec.
    The search button. Your new best friend.
    - Dubya

  9. #9
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Add category nav to listing detail?

    Dubya - do you mean like this?

    If so, you need to paste the code you have above into page.php

    In fact you can copy/ paste that code into almost any page, I would imagine.

  10. #10
    dubya's Avatar
    Join Date
    May 2009
    Location
    Canada
    Posts
    1,000
    Thanks
    115
    Thanked 107 Times in 93 Posts

    Re: Add category nav to listing detail?

    Yup.
    I didn't paste it into the right spot.
    It goes right below this line:
    <div class="content">
    for those that need to know... this is all you need to add:
    Code:
    <ul id="catnav">
                <li<?php if ( is_home() ) { echo " class=\"current-cat\""; } ?>><?php _e('Latest Listings','cp'); ?>
             <?php wp_list_categories('show_count=0&hide_empty=true&orderby=name&order=asc&title_li='); ?>[*]<div class="clear"></div>[/list]
    Darn. I figured it out all by myself and don't get the credit.
    The search button. Your new best friend.
    - Dubya

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I donīt want to choose a category, I want a default category
    By dvmblues in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 10th, 2010, 01:57 PM