Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • in reply to: Present Related Articles ordered by date #104084
     allspy
    Participant

    Hi,

    Thank you, I found the code on the child-theme and chamge ‘rand’ to ‘date’.

    It’s working now.

    Thanks for your help.

    Regards

    in reply to: Present Related Articles ordered by date #104083
     allspy
    Participant

    Hi,

    Can you please confirm if you added the code to my child the,e or to the main theme?

    Thanks

    in reply to: Present Related Articles ordered by date #102296
     allspy
    Participant
    This reply has been set as private.
    in reply to: Present Related Articles ordered by date #102273
     allspy
    Participant
    This reply has been set as private.
    in reply to: Present Related Articles ordered by date #101197
     allspy
    Participant

    Hi,

    The code is exactly has you show.

    The original on my file:

    COPY CODE
        if (!empty($categories)) {
            foreach( $categories as $tax ) {
                $terms = wp_get_object_terms($post->ID, $tax, array('fields' => 'ids'));
    
                $args['tax_query'][] = array(
                    'taxonomy' => $tax,
                    'field' => 'id',
                    'terms' => $terms
                );
            }
        }
    }

    How it satys after the update:

    COPY CODE
        if (!empty($categories)) {
            foreach( $categories as $tax ) {
                $terms = wp_get_object_terms($post->ID, $tax, array('fields' => 'ids'));
    
                $args['tax_query'][] = array(
                    'taxonomy' => $tax,
                    'field' => 'id',
                    'terms' => $terms,
                    'orderby' => 'date'
                );
            }
        }
    }

    Do you see anything wrong?

    Thanks

    in reply to: Present Related Articles ordered by date #101182
     allspy
    Participant

    Hi,

    This error is now visible where the related posts where present:

    Parse error: syntax error, unexpected ”orderby” (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in /home/sitedemo/public_html/wp-content/themes/kleo-child/page-parts/posts-related.php on line 44

    Thanks

    in reply to: Modify User Tabs Order and Add New tabs #99857
     allspy
    Participant
    This reply has been set as private.
    in reply to: add new fields to mailchimp subscription form #72627
     allspy
    Participant
    COPY CODE
    
    <div class="form-inline">
    <input type="text" id="mc4wp_email" class="input-lg" name="NAME" placeholder="Your name" required />
    <input type="email" id="mc4wp_email" class="input-lg" name="EMAIL" placeholder="Your email address" required />
    <a>SUBSCRIBE</a>
    </div>
    
    in reply to: add new fields to mailchimp subscription form #72592
     allspy
    Participant

    Hi Radu,

    Thank you. It worked.

    I also need to change the “subscribe” button color, can you help me?

    Thanks

    in reply to: add new fields to mailchimp subscription form #72481
     allspy
    Participant

    Hi Radu,

    Thanks for the reply.

    For now the site is not online, it is currently installed on my PC.

    I’ve sent you the mailchimp form code I was using, and a print screen of how it look like on the front.

    Can you help me with those data?

    Thanks

     allspy
    Participant

    Hi Laura,

    The first thing that come to my mind, was the VC version. As Kleo didn’t had the last VC version, I’ve bought a license and I now have the Version 4.6.1 installed. But the problem persists, with KLEO and K ELEMENTS activated the “Row Settings” only shows the “General” tab. The “Design Options” tab doesn’t appear.

    With a native WP theme, VC works fine.

    Please let me know if you wish the admin backoffice access.

    Thanks in advanced.

    Regards

Viewing 11 posts - 1 through 11 (of 11 total)

Log in with your credentials

Forgot your details?