-
AuthorPosts
-
October 17, 2014 at 12:31 pm #337250
Hello,
I’ve inserted several photo galleries in the different sections of the “accordion”, and, unfortunately, when you continue clicking on the right arrow, it shows the pictures of the other sections of the accordion. How can I avoid this? Here is the link of my page: http://www.romaliuteria.it/restauration/
Thank you in advance!!
Best regards,
EymatàOctober 20, 2014 at 3:36 pm #338392Hey Eymata!
Page cannot be found. Can you please check the link once again and post the correct one so we can look into it?
Best regards,
YigitOctober 21, 2014 at 2:38 am #338802Thank you for the reply, in fact I’ve let the page on “public” only for a few hours. Never mind, I don’t need the accordion anymore.
Instead, could you help me to obtain that on my “portfolio grid”, the items appear in the order I want, and not casually? Thank you!!
EymatàOctober 21, 2014 at 2:56 am #338803February 22, 2017 at 9:43 pm #750688Hello,
I have a similar problem, I have put the portfolio grid in casual order, but this does not happen,
when I reloading the page the items keep the same order. it is happen in the primary page and in the tags and portfolio category pages too
I hope in a prompt replyFebruary 28, 2017 at 8:07 am #752765Hi,
What do you mean by “casual order”? Did you use the plugin that we suggested above? Please post the url to the page so that we can check it.
Best regards,
IsmaelFebruary 28, 2017 at 8:45 am #752786…
- This reply was modified 7 years, 8 months ago by Marco.
March 1, 2017 at 6:31 am #753430Hi!
Please add this in the functions.php file:
//portfolio query add_filter( 'avia_post_grid_query', 'avia_post_grid_query_mod', 10, 2); function avia_post_grid_query_mod( $query, $params ) { $query['orderby'] = 'rand'; return $query; }
Cheers!
IsmaelMarch 1, 2017 at 10:04 am #753568Hi, yes, I have just added this,
But it is the same…. there is no effect: pherhaps I put this code in no correct position: I paste here a part of the code to make you controll:add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );
/*title fallback*/
if ( ! function_exists( ‘_wp_render_title_tag’ ) )
{
function av_theme_slug_render_title()
{
echo “<title>” . avia_set_title_tag() .”</title>”;
}
add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
}//portfolio query
add_filter( ‘avia_post_grid_query’, ‘avia_post_grid_query_mod’, 10, 2);
function avia_post_grid_query_mod( $query, $params ) {
$query[‘orderby’] = ‘rand’;
return $query;
}/*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
/*
* add option to edit elements via css class
*/
// add_theme_support(‘avia_template_builder_custom_css’);March 2, 2017 at 6:58 am #754077Hey!
Are you using the Portfolio Grid element or the Masonry element? If you’re using the masonry element, please use this filter instead.
// masonry element query add_filter( 'avia_masonry_entries_query', 'avia_masonry_entries_query_mod', 10, 2); function avia_masonry_entries_query_mod( $query, $params ) { $query['orderby'] = 'rand'; return $query; }
And disable the Post Type Order plugin if you installed it.
Best regards,
IsmaelMarch 2, 2017 at 8:16 pm #754529Hi ,
- This reply was modified 7 years, 8 months ago by Marco.
March 3, 2017 at 6:00 am #754821Hey!
I see. Thank you for the clarification. Please remove the previous modifications then add this code in the functions.php file:
function ava_portfolio_archive_query($query) { //var_dump($query); if ( !is_admin() ) { if ($query->queried_object->taxonomy == 'portfolio_entries') { $query->set( 'orderby', 'rand' ); } } } add_action('pre_get_posts','ava_portfolio_archive_query');
Regards,
IsmaelMarch 3, 2017 at 9:54 am #754930:-)
- This reply was modified 7 years, 8 months ago by Marco.
March 6, 2017 at 5:02 am #756132Hi!
That’s odd. The code is supposed to work in the archive pages only. We modified it a bit. Please test it again.
Regards,
IsmaelMarch 6, 2017 at 7:59 am #756200Hi
Many Thanks for your Patience
In the primary page is a grid in casual order but take a bit of minuts for change the order…
in the portfolio categories and tag there is a chronological order….
Pleese control my function PHP fle if is correct. Thank(USE PASTEBIN.COM)
March 9, 2017 at 7:42 am #758194Hi!
Please remove the filter then use this code instead:
function ava_portfolio_archive_query($query) { if ( !is_admin() && $query->is_main_query() ) { if ($query->queried_object->taxonomy == 'portfolio_entries' && $query->is_archive) { $query->set( 'orderby', 'rand' ); } } } add_action('pre_get_posts','ava_portfolio_archive_query');
We added the “$query->is_archive” conditional function.
Regards,
IsmaelMarch 9, 2017 at 8:36 pm #758535hi how are you?
I have add this code but …. is the same — :-(
Is there the way to send you a function.php file , so you could modify it and send me a correct file?March 10, 2017 at 10:49 am #758804Hey!
This filter is working on our installation. Please post the WP login details so that we can modify the file. And make sure that the Appearance > Editor panel is accessible.
Cheers!
IsmaelMarch 11, 2017 at 11:42 am #759351hey
ok , I send You in a Private Content- This reply was modified 7 years, 8 months ago by Marco.
March 13, 2017 at 6:43 am #759830March 13, 2017 at 6:49 am #759831The site go bad, please see in front and
March 13, 2017 at 6:51 am #759832immediately put in place, for me this and ‘an expensive damage
March 13, 2017 at 7:04 am #759833OH, THANKS, SORRY , :-)…. COULD YOU MAKE OTHER ATTEMPT?
BUT CONTROL THE FRONT END AFTER LIVE THE SITE IN THIS CONDITIONS…. I HAVE A LOT OF VISITORS IN MY TOWN….
THANK YOU VERY MUTCHMarch 13, 2017 at 7:57 am #759854Hi!
The site is loading fine on my end. And the items are ordered randomly every page refresh.
Cheers!
IsmaelMarch 13, 2017 at 8:03 am #759855Hi,
how strange, on my and it does not happen so… it is the same :-(
March 13, 2017 at 10:03 am #759894Sorry, The problem is not ‘solved, Could you controll Please ?
- This reply was modified 7 years, 8 months ago by Marco.
March 14, 2017 at 4:20 am #760394Hey!
We added another filter for the “tag” archive page. Please remove browser cache before checking the page.
Cheers!
IsmaelMarch 14, 2017 at 7:04 am #760463oh its fantastic… thank you very mutch ….
Have a beautyfoul day!March 15, 2017 at 5:35 am #761111Hi,
Glad that Ismael could help :) Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.