Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17935

    Is it possible to show chronicle links in a single portfolio entry page, i.e. change the default (previous entry – next entry) links to something like (previous | 1 | 2 | 3 | next ) so the user can easily navigate between other related entries (in the same category)

    I’ve tried the following modifications in single-portfolio.php with no luck.

    1- replace echo ” avia_post_nav(); ” with ” echo avia_pagination(); “

    2- replace echo ” avia_post_nav(); ” with standard call to paginate_links()

    Many thanks in advance.



    I am not sure that functionality such as what you describe is even needed since it already exists on the main portfolio page. Unlike a blog, a portfolio has a page where every item could be examined before being clicked, and if the portfolio is paginated , the ‘real pagination’ will be available there. To have such a feature on an individual portfolio page in that sense is redundant as I believe it exists on the main portfolio page. I think a project such as this is best handled by a freelancer, and is outside the scope of the support team.

    Also you are looking in the wrong place. Look in functions.php between lines 453-6 , it’s probably doable, though I haven’t seen it implemented anywhere,




    Hi Nick,

    Maybe I did’t explained myself well, but I was looking to modify the built-in feature “Related Entries” that never showed up in my side due to the following “possible bug”. I’ve completely forgot about that feature and started to implement my own as above.

    * Possible bug

    In WPML enabled site, potfolio related entries are not populated form the database.

    * Workaround

    In file related-posts.php, around line 51, exclude WPML language filters from the query.

    Replace :

    $my_query = new WP_Query(array(‘portfolio_entries’=>$tag_ids, ‘showposts’=>$postcount, ‘ignore_sticky_posts’=>1, ‘orderby’=>’rand’, ‘post__not_in’ => array( $this_id ) ) );

    With :

    $my_query = new WP_Query(array(‘portfolio_entries’=>$tag_ids, ‘showposts’=>$postcount, ‘ignore_sticky_posts’=>1, ‘orderby’=>’rand’, ‘post__not_in’ => array( $this_id ),’suppress_filters’=>true ) );

    I’ve just discovered this now, and I’m able to modify the output to ( previous | 1 | 2 | 3 | next ) or what so ever.

    I do not know if this is the right solution but worked for me, still open for suggestions or improvements.


Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Chronicle links in a single Portfolio entry page.’ is closed to new replies.