-
AuthorPosts
-
May 18, 2017 at 1:13 pm #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 LuisMay 18, 2017 at 2:49 pm #795914Hey 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,
SarahMay 18, 2017 at 4:16 pm #795979Hi 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!
May 18, 2017 at 8:11 pm #796127Hi,
If you have PHP skills, you can add this code in the functions.php of your child theme.
Best regards,
John TorvikMay 19, 2017 at 11:22 am #796490I’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'));
May 21, 2017 at 10:08 pm #797316Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.