Forum Replies Created

Viewing 30 posts - 121 through 150 (of 232 total)
  • Author
    Posts
  • in reply to: Conflict with Google Map after Update to 4.5.1 #1061566

    Hei Rikard
    as I could find out it is not the file, but the function itself:

    function change_aviajs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 3, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );

    For a closer look, you will find login credentials in private content.

    in reply to: Portfolio entries #1003680

    Hey Dude – it works – this is fantastic – thank you!!!

    Small note: “include-shortcode-filter” was already in my function. Your code has overwritten existing filters. But that doesn´t matter, I have a backup.

    Thanks again

    in reply to: Portfolio entries #1003031

    Hi Dude, the second portfolio.php was just for testing – anyway I delete it – but this will not fix the error. Still get this error:
    Fatal error: Call to undefined method avia_post_grid::use_search_and_filter_query() in /home/www/.../wp-content/themes/hana-reisen/search-filter/results.php on line 26

    • This reply was modified 5 years, 8 months ago by frankeee.
    in reply to: Portfolio entries #1002613

    … Bernd – thank you so much for your support. Yes – hope the support team will have a look!

    in reply to: Portfolio entries #1002582

    Guten Morgen Bernd, yes but this will cause the error in portfolio.php:
    Cannot redeclare avia_post_grid::use_global_query() in /home/www/dev……/shortcodes/portfolio/portfolio.php on line 959

    Otherwise Dude´s suggestion (see #999694) will cause the error in results.php:
    Call to undefined method avia_post_grid::use_search_and_filter_query() in /home/www/dev/search-filter/results.php on line 26

    Even if I rename the results.php with my S&F-ID.php – I get the same error.

    in reply to: Portfolio entries #1002235

    Hey Bernd, thanks a lot or your detailed instructions !!!

    Unfortunately, I was not lucky. Although I renamed results.php into my-S&F-ID.php. Nevertheless the mods should also run in a child, I´ve done it directly in enfold – like you do. Anyway can someone of the enfold support team tell me if a public function will work in a child-theme?

    A public function like this:
    1) Own puplic function on line 424 of portfolio.php: https://pastebin.com/4we4UCnY
    2) Put the modified portfolio.php in CHILD-THEME/shortcodes/portfolio/portfolio.php
    3) Add this filter to the function.php:

    function reiselaender_func( $atts ){
        return get_field( 'reiselaender');
    }
    add_shortcode( 'reiselaender', 'reiselaender_func' );

    If this puplic function works – why does the following code snippet not showing any results?

    <?php
        $grid = new avia_post_grid(array(   'linking'       => 'ajax',
                                            'columns'       => '3',
                                            'contents'      => 'excerpt',
                                            'sort'          => 'no',
                                            'paginate'      => 'yes',
                                            'set_breadcrumb' => false,
                                    ));
        $grid->use_search_and_filter_query($query);
        echo $grid->html();
        ?>

    Do I have to put the S&F Search-ID anywhere? Filename with S&F Search-ID, like Bernd did, is not working for me.
    If someone will have a closer look, you will find login credentials in private content.

    in reply to: Portfolio entries #1001282

    Hey Bernd, thanks for vour willingness to help! And yes, his is exactly what I will do! The results of S&F should look like portfolio entries.
    What I´ve done:
    1) Modify the ENFOLD portfolio.php like here: https://pastebin.com/4we4UCnY
    2) Modify SEARCH&FILTER results.php like here: https://pastebin.com/ZbMLs9Xz
    … but with this mods I get no results at all (without this mods results will displayed). Do you have an idea what`s wrong?

    in reply to: Portfolio entries #1001052

    … I don´t want to get impatient – but since 3 days I´m waiting for your answer. So please just let me know:
    Do you want to canceling your support?
    Or would you like help me further on?

    in reply to: Portfolio entries #999705

    … great – the syntax error is gone – thanks!

    But also I try to do it the same way as Bernd (using ENFOLD ‘taxonomy-portfolio_entries.php’ without get_header(); and get_footer(); as customized template) it will not working.

    What I´ve done:
    1) Modify the ENFOLD portfolio.php like here: https://pastebin.com/4we4UCnY
    2) Modify SEARCH&FILTER results.php like here: https://pastebin.com/ZbMLs9Xz
    … do you have an idea what`s wrong?

    All the mods are in my child-theme:
    CHILD/shortcodes/portfolio/portfolio.php
    CHILD/search-filter/results.php

    In case you will have a closer look, you will find login credentials in private content – thanks in advance!

    in reply to: Portfolio entries #999686

    …. thanks again for your support. I have already placed the code before the curly bracket- see https://pastebin.com/VxhNU7eu
    But syntax error still exist.

    in reply to: Portfolio entries #999274

    … thanks Dude! But your suggestion causes  a syntax error. This is the portfolio.php with code snippet on line 427:
    https://pastebin.com/UJ2876g6

    in reply to: Portfolio entries #999228

    … OK. But the only information I need is:
    On which line (in “config-templatebuilder/avia-shortcodes/portfolio.php”) should I paste Josue’s code snippet?

    Just this little Information will help. Can you please tell me the number of the line?

    in reply to: Portfolio entries #998364

    … yes – of course: I tried to use Josue’s solution! Problem is the code snippet for the function as mentioned in my post before #998345

    in reply to: Portfolio entries #998345

    Hi Josue,
    I have exactly the same problem and was happy to find your solution! But your code snippet for the function.php doesn´t work for me:

     public function use_search_and_filter_query($query)
    {
    	$this->entries = $query;
    }

    I already use a child theme. Is this the problem? Can you help?

    … thank you Ismael !!!

    in reply to: Portfolio order by custom field (ACF) #879587

    Hello Ismael,
    thanks for your efforts. I will hire a freelancer ;-)

    in reply to: Portfolio order by custom field (ACF) #879338

    – Layout builder problem is solved by your colleague Yigit.
    – Order by ACF still not working

    in reply to: After Update – layout builder not working #879336

    … thanks Yigit – fantastic support!

    I have one more problem on the same site. Try to solve it with your colleague Ismael. See here:

    But over 2 weeks we can´t find a solution. Possibly you can have a look on it? Just a question ;-)

    in reply to: After Update – layout builder not working #879144

    .. done!
    I re-downloaded the files from Themeforest and upload it on the server. But nothing change – still the same problem.

    in reply to: After Update – layout builder not working #879099

    Hey Yigit,
    for login credentials pleas see private date

    in reply to: Portfolio order by custom field (ACF) #878797

    … updated to enfod 4.2. – nothing changed – layout builder still not working!

    On another installation layout builder work fine with:
    – WordPress 4.9
    – Enfold 4.1.1

    in reply to: Portfolio order by custom field (ACF) #877982

    Hi Ismael, you are right. Give us a last try (please see FTP details in private content).

    in reply to: Portfolio order by custom field (ACF) #877416

    OK, I see. Useaally I don´t use the WordPress editor. I edit the function.php via FTP. Do you know why function.php code not show up in the wordpress editor?

    Anyway I´ve put your code into the functions.php via wordpress editor. The result is:
    1) Events order is still the same – it´s not working
    2) The event date is disappearing. Killed by the function?

    Sorry, but your support doesn´t really help. I have to wait more than a day for an answer and instead of solving problems, more problems coming up (editor function.php not showing). If you not really want help me, please feel free to say no. This is better than waste my (and also yours) time!

    in reply to: Portfolio order by custom field (ACF) #876513

    … no, the function.php isn´t blank (see Child-Theme)! ANYWAY thanks for your code – but it´s not working.

    I put your Code into my function.php but nothing change at all – the order of my events is exactly the same. What can I do?

    in reply to: Portfolio order by custom field (ACF) #875997

    Hi Ismael, don´t know what you exactly asking for? My events should ordered by the date of the custom field “kursbeginn”. This should look like this:
    [kursbeginn= 02.01.18 ] event#7
    [kursbeginn= 05.02.18 ] event#4
    [kursbeginn= 22.03.18 ] event#5

    … the field type of “kursbeginn” is a date picker, therefore the value is a date. Does this help? Or do you need something else? If you want to have a closer look I give you admin access (see private content)

    in reply to: Portfolio order by custom field (ACF) #875086

    … thanks, but it is still nort working. I´ve eliminated one more syntax error -see code above. Use “modified” in the Custom Query Orderby element.
    But the order is still wrong!

    if(!function_exists('avia_custom_query_extension'))
    {
        function avia_custom_query_extension($query, $params)
        {
            global $avia_config;
            if(!empty($avia_config['avia_custom_query_options']['order']))
            {
                $query['order'] = $avia_config['avia_custom_query_options']['order'];
            }
    
            if(!empty($avia_config['avia_custom_query_options']['orderby']))
            {
                $query['orderby'] = $avia_config['avia_custom_query_options']['orderby'];
                if($avia_config['avia_custom_query_options']['orderby'] == 'meta_value')
                {
                  $value = get_field( "kursbeginn" );
                  $query['meta_key']  = $value;
                }
    
            }
    
            unset($avia_config['avia_custom_query_options']);
    
            return $query;
        }
    
        add_filter('avia_masonry_entries_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_grid_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_slide_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_blog_post_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avf_magazine_entries_query', 'avia_custom_query_extension', 10, 2);
    
        add_filter('avf_template_builder_shortcode_elements','avia_custom_query_options', 10, 1);
        function avia_custom_query_options($elements)
        {
            $allowed_elements = array('av_blog','av_masonry_entries','av_postslider','av_portfolio','av_magazine');
    
            if(isset($_POST['params']['allowed']) && in_array($_POST['params']['allowed'], $allowed_elements))
            {
                $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' ) =>'',
                        __('Title',  'avia_framework' ) =>'title',
                        __('Random',  'avia_framework' ) =>'rand',
                        __('Date',  'avia_framework' ) =>'date',
                        __('Author',  'avia_framework' ) =>'author',
                        __('Name (Post Slug)',  'avia_framework' ) =>'name',
                        __('Modified',  'avia_framework' ) =>'modified',
                        __('Comment Count',  'avia_framework' ) =>'comment_count',
                        __('Page Order',  'avia_framework' ) =>'menu_order'),
                        __('Meta Value',  'avia_framework' ) =>'meta_value')
               ; 
    
                $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'));
            }
    
            return $elements;
        }
    
        add_filter('avf_template_builder_shortcode_meta', 'avia_custom_query_add_query_params_to_config', 10, 4);
        function avia_custom_query_add_query_params_to_config($meta, $atts, $content, $shortcodename)
        {
            global $avia_config;
            if(empty($avia_config['avia_custom_query_options'])) $avia_config['avia_custom_query_options'] = array();
    
            if(!empty($atts['order']))
            {
                $avia_config['avia_custom_query_options']['order'] = $atts['order'];
            }
    
            if(!empty($atts['orderby']))
            {
                $avia_config['avia_custom_query_options']['orderby'] = $atts['orderby'];
            }
    
            return $meta;
        }
    }
    
    in reply to: Portfolio order by custom field (ACF) #874563

    Good Morning early working Ismael – thanks for your work!
    Only problem is a syntax error on the line
    $query['meta_key'] => $value;
    I´ve tried to figure it out for myself, without success. Can somebody please remove the syntax error?

    in reply to: Portfolio order by custom field (ACF) #874084

    Good Morning Ismael,
    yes it´s possible – I just don´t know how to put my ACF field[acf field="kursbeginn"] into your “avia_custom_query_extension”?

    in reply to: Portfolio order by custom field (ACF) #873336

    Hello Guenni007, thanks for answering. But my question is another.one: I don’t know how to cistomize this code for my ACF field?

    I use a ACF Field for the Date of a Event and want to sort my Events by this date. Should I customize the code or should I think in another direction?

    in reply to: Portfolio – Page Order not working #847547

    Hi Ismael,
    it´s more than a week ago that I receive my first answer (thank you). And sorry – your answer not help at all.
    Can you give me some hints, how does your page order work? Where can I find the code?

Viewing 30 posts - 121 through 150 (of 232 total)