Viewing 29 posts - 1 through 29 (of 29 total)
  • Author
    Posts
  • #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à

    #338392

    Hey 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,
    Yigit

    #338802

    Thank 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à

    #338803

    Hi!

    Please try using this plugin – https://wordpress.org/plugins/post-types-order/

    Cheers!
    Yigit

    #750688

    Hello,
    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 reply

    #752765

    Hi,

    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,
    Ismael

    #752786

    • This reply was modified 7 years, 7 months ago by Marco.
    #753430

    Hi!

    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!
    Ismael

    #753568

    Hi, 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’);

    #754077

    Hey!

    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,
    Ismael

    #754529

    Hi ,

    • This reply was modified 7 years, 7 months ago by Marco.
    #754821

    Hey!

    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,
    Ismael

    #754930

    :-)

    • This reply was modified 7 years, 7 months ago by Marco.
    #756132

    Hi!

    That’s odd. The code is supposed to work in the archive pages only. We modified it a bit. Please test it again.

    Regards,
    Ismael

    #756200

    Hi
    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)

    #758194

    Hi!

    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,
    Ismael

    #758535

    hi 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?

    #758804

    Hey!

    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!
    Ismael

    #759351

    hey
    ok , I send You in a Private Content

    • This reply was modified 7 years, 7 months ago by Marco.
    #759830

    Hey!

    We modified the code a bit. Please check it a few times.

    Cheers!
    Ismael

    #759831

    The site go bad, please see in front and

    #759832

    immediately put in place, for me this and ‘an expensive damage

    #759833

    OH, 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 MUTCH

    #759854

    Hi!

    The site is loading fine on my end. And the items are ordered randomly every page refresh.

    Cheers!
    Ismael

    #759855

    Hi,

    how strange, on my and it does not happen so… it is the same :-(

    #759894

    Sorry, The problem is not ‘solved, Could you controll Please ?

    • This reply was modified 7 years, 7 months ago by Marco.
    #760394

    Hey!

    We added another filter for the “tag” archive page. Please remove browser cache before checking the page.

    Cheers!
    Ismael

    #760463

    oh its fantastic… thank you very mutch ….
    Have a beautyfoul day!

    #761111

    Hi,

    Glad that Ismael could help :) Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 29 posts - 1 through 29 (of 29 total)
  • You must be logged in to reply to this topic.