Before you ask please READ THIS

work navigation depending on categroy

edited March 2015 in Fame Posts: 10
Hello,

I'm wodering, if there is a possibility to organize the work navigation depending on the category. So the work navigation would just link within workpages of the same category.

Thanks

Comments

  • AirAir
    Posts: 10,970
    Hello

    If every user would swear that he/she wont use more then category for each work then it could be possible :-)

    But lets try it:-) Go to fame\advance\utilities\post__work__gallery__blog.php line ~647 and change this
    
            next_post_link( '<span class="prev">%link</span>','' );
            previous_post_link( '<span class="next">%link</span>','' );
    
    to
    
    	    if(defined( 'A13_WORK_PAGE' )){
    		    next_post_link( '<span class="prev">%link</span>','', true, '', A13_CPT_WORK_TAXONOMY );
    		    previous_post_link( '<span class="next">%link</span>','', true, '', A13_CPT_WORK_TAXONOMY );
    	    }
    	    else{
    		    next_post_link( '<span class="prev">%link</span>','' );
    	        previous_post_link( '<span class="next">%link</span>','' );
    	    }
    
    With kind regards.
  • Hello,

    I tried it, but unfortunately it didn't work. Tought there is no workpage with more than one category.
  • AirAir
    Posts: 10,970
    I have tested and it works. But what is more I have added this in newest theme version so now you have switch for this in Works-> Single work settings -> Navigate by categories

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!