
-
AuthorPosts
-
May 23, 2014 at 4:13 am #268977
Hi,
I am having an issue with the arrows/navigation on the portfolio items. http://103.225.186.131/~yorkway/our-experience/
I only have four portfolio items. When i open up the first one it scrolls through in order using the right arrow but when you use the left one backwards it goes in a differnt order and sometimes only scrolls through two of them.
Do you know what the problem is?
Thanks, Carly.
May 23, 2014 at 8:37 am #269016Hi southerndesign!
Maybe a plugin breaks the next/prev nav buttons. Try to deactivate all plugins and check if the issue persists.
Best regards,
PeterMay 26, 2014 at 4:06 am #269879Hi,
I have tried this and am still having the issue?
What else can I try, as the client has realised this and wants it fixed.
Thanks Carly.
May 26, 2014 at 5:41 am #269921Hi!
Thank you for the update.
Do you mind providing us with the login details? Please set it as a private reply. Is it ok if we deactivate all plugins while debugging the issue? We don’t want to mess with the plugin settings while trying to figure out the problem.
Cheers!
IsmaelMay 27, 2014 at 1:38 am #270353This reply has been marked as private.May 28, 2014 at 12:14 am #270909Hi,
How did you go with this?
Thanks, Carly.
May 28, 2014 at 3:41 pm #271194Hi!
I noticed that the Post Types Order plugin breaks the next/prev navigation buttons. Unfortunately I don’t know how to fix this because we use standard wordpress functions ( http://codex.wordpress.org/Function_Reference/get_next_post and http://codex.wordpress.org/Function_Reference/get_previous_post ) and it seems to be a plugin/wordpress conflict which has nothing to do with our theme code. I suggest to contact the plugin author and to submit a bug report.
Regards,
PeterMay 29, 2014 at 6:10 am #271635Hi,
I have deactivated the plugin and the arrows are going the wrong way.
On the our experience page it goes media, coverforce, ansett then current mandates.
Then when you click on media the left button goes to cover when the right button should go to cover?
Can you please advise how to fix this?
Thanks
May 29, 2014 at 2:45 pm #271813Hi!
The http://codex.wordpress.org/Function_Reference/get_next_post and http://codex.wordpress.org/Function_Reference/get_previous_post functions query the next/previous post based on the “Publish” date. 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
Best regards,
PeterMay 30, 2014 at 5:03 am #272230Hi,
I understand that the publish date changes the order but the order on this page here http://103.225.186.131/~yorkway/our-experience/ doesnt match up to the order once clicked into an individual portfoilio item here http://103.225.186.131/~yorkway/portfolio-item/media-monitors/
For http://103.225.186.131/~yorkway/portfolio-item/media-monitors/ the right arrow should go to http://103.225.186.131/~yorkway/portfolio-item/coverforce/ but on media monitors there is no right arrow only a left arrow that goes to http://103.225.186.131/~yorkway/portfolio-item/coverforce/.
This means it is going the wrong way?
Please advise how to fix.
Thanks
June 1, 2014 at 6:38 pm #272980Hey!
Try to add this code to your child theme functions.php file or enfold/functions.php:
add_filter('avia_post_grid_query', 'avf_custom_post_grid_query'); function avf_custom_post_grid_query ( $query ) { $query['orderby'] = 'date'; $query['order'] = 'ASC'; return $query; }
This code will make sure that your portfolio entries are ordered by date with an ascending order.
Regards,
PeterJune 2, 2014 at 12:46 am #273063Hi,
This changed the order on the main page which I didnt want.
Sorry if I am not being clear but on this page http://www.yorkwaypartners.com/portfolio-item/media-monitors/ there should be a right arrow heading to cover force. But as you can see the left arrow is heading there so it is all going the wrong way?
Please confirm how to correct.
Thanks, Carly.
June 2, 2014 at 8:57 am #273131Hi!
You can try to change the arrow position – please place this code into the child theme functions.php file enfold/functionsphp:
add_filter('avia_post_nav_entries', 'avia_apply_custom_sort_order_to_post_nav', 10, 2); function avia_apply_custom_sort_order_to_post_nav($entries, $settings) { $temp_prev = $entries['prev']; $temp_next = $entries['next']; $entries['prev'] = $entries['next'] = ""; if(!empty($temp_next)) $entries['prev'] = $temp_next; if(!empty($temp_prev)) $entries['next'] = $temp_prev; return $entries; }
Regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.