Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #795853

    Hi, is there a way to get the Masonry to be sorted by a custom filed (Advanced Custom Fields)?

    I want to have a filed for year in my portfolio and i don’t want to mess with the posts dates.

    Also is there any kind of support for the ACF (Advanced Custom Fields) plugin in Enfold?

    Thanks,
    Helder Luis

    #795914

    Hey helderluis,

    Have you tried the instructions in our documentation here: http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/

    Best regards,
    Sarah

    #795979

    Hi Sarah,

    No, but i’ve tried right now. It does add another set of order menus: Custom Query Orderby and Custom Query Order.

    But i can’t see an option to use custom fields…

    Where should i put my custom field code?
    the_field(‘year’);

    Thank you!

    #796127

    Hi,

    If you have PHP skills, you can add this code in the functions.php of your child theme.

    Best regards,
    John Torvik

    #796490

    I’m doing this and this should be enough, right? Not working…

    
                $elements[] = array(
                    "name" => __("Custom Query Orderby",'avia_framework' ),
                    "desc" => __("Set a custom query orderby value",'avia_framework' ),
                    "id"   => "orderby",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Work Year', 'meta_key') => 'acf-year')
                );
    
                $elements[] = array(
                    "name" => __("Custom Query Order",'avia_framework' ),
                    "desc" => __("Set a custom query order",'avia_framework' ),
                    "id"   => "order",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Ascending Order',  'avia_framework' ) =>'ASC',
                        __('Descending Order',  'avia_framework' ) =>'DESC'));
    
    #797316

    Hi,

    Those are to register the Array options for the builder
    Not the actual ordering.
    What you need to do is a bit advanced, you need to edit the template files and create them to load from child theme.

    Please consider to hire a freelancer to help you out, there are not a lot we can do from our side right now here.

    Best regards,
    Basilis

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