Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • 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: 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>
    
Viewing 2 posts - 1 through 2 (of 2 total)

Log in with your credentials

Forgot your details?