Tagged: Portfolio
-
AuthorPosts
-
March 16, 2014 at 3:52 pm #238303
Hi Everyone,
I have created a portfolio of 3 elements and placed them in category “Three Elements”. All of these elements have featured image that is present on the website page:
http://runedesire.co.uk/?page_id=39
As you can see, we have 3 elements in proper order. Chinese Med, NanoTech, Cosmeceuticals.
When I did that initially, after entering portfolio page everything was fine and “Preview with image” button that pops out from the side of the page was on the right and I could move to the next portfolio item what made it perfect.Recently I have added an item to the portfolio but deleted it soon after and now there is a problem.
When we enter Chinese Medicine, “Preview with image” button that pops out from the side of the page is on the left, not on the right.
http://runedesire.co.uk/?portfolio=chinese-medicine
What to do ? I need it back on the right.
I have tried to play with publishing dates of the items but when I change them, “Preview with image” button acts appropriately but then the order of portfolio items is reversed.
Please help.
March 18, 2014 at 6:41 pm #239516Hey!
Change the publishing dates to tweak the navigation links, and to change the order in the portfolio list page, try this plugin.
Best regards,
JosueMay 5, 2014 at 11:00 am #260174Hi I have a similar issue! I would like to order the navigation among portfolio entries (by category) in alphabetical order and not by date of publication of the entry. Is it possible to modify it by code?
Thanks!
May 5, 2014 at 2:29 pm #260257Hey!
Please see – http://kriesi.at/documentation/enfold/change-the-sort-order-of-portfolio-elements/
Regards,
YigitMay 5, 2014 at 3:08 pm #260285Hey Yigit thank you very much! I already inserted this code to sort the portfolio items alphabetically and it works perfectly
require_once( 'functions-enfold.php'); function custom_post_grid_query( $query, $params ) { $query['orderby'] = 'title'; $query['order'] = 'ASC'; return $query; } add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);
However I set to open the portfolio entry in a new page. Once i am in the page, the page do not navigate anymore by alphabetical order of the portfolio category but by date.
Would replacing the above query with this one work?
$query = new WP_Query( array( ‘post_type’ => ‘page’, ‘orderby’ => ‘title menu_order’, ‘order’ => ‘ASC’ ) );May 6, 2014 at 6:03 pm #260874Hi!
Please add following code to Functions.php as well
function avf_same_category_navigation($settings) { if($settings['taxonomy'] == 'portfolio_entries') $settings['same_category'] = true; return $settings; } add_filter('avia_post_nav_settings','avf_same_category_navigation', 10);
Cheers!
YigitMay 31, 2014 at 9:35 pm #272831Thank you all for your replies but unfortunately the codes do not work. The code presented above just changes the order of displayed items on the main page which can be achieved in the settings of the portfolio itself. I need something what will reverse the order of the navigation bars inside the portfolio :(
June 1, 2014 at 5:10 pm #272963Hey!
This is unfortunately not possible without changing the publishing date. We use two standard wordpress functions http://codex.wordpress.org/Function_Reference/get_next_post and http://codex.wordpress.org/Function_Reference/get_previous_post functions to query the next/previous post. Unfortunately these functions will ignore your custom order. If you want to change the order you can change the “Publish” date on the portfolio entry editor screen: http://www.clipular.com/c/6512378338344960.png?k=ePmDZIgkUwalUmwsnswk1m_t0Qw
Alternatively you can use some php code to hide the buttons:
function avf_same_category_navigation($settings) { if($settings['taxonomy'] == 'portfolio_entries') $settings['is_fullwidth'] = true; return $settings; } add_filter('avia_post_nav_settings','avf_same_category_navigation', 10);
Regards,
Peter -
AuthorPosts
- The topic ‘Portfolio Browsing – Side preview on the wrong side.’ is closed to new replies.