I was wondering if it’s possible to implement card.js on WordPress

Seems like you have misplaced the card jquery library. You can include the js using wp_enqueue_script in WordPress. wp_enqueue_script( ‘jquery-card-script’, get_stylesheet_directory_uri() . ‘/js/card.js’, array( ‘jquery’ ), ‘1.0.0’, true ); Use the above code in your child theme functions.php and call your card from your main js file. new Card({ form: document.querySelector(‘form’), container: ‘.card-wrapper’ });

ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]

Ok I figured it out! The setup is a little different but it works great. PHP / HTML Working Code <section class=”dev-slider-wrppr”> <div class=”dev-slider-row”> <div class=”slider-for”> <?php if( have_rows(‘slider_content’) ): ?> <?php while( have_rows(‘slider_content’) ): the_row(); ?> <?php $slideimage = get_sub_field(‘slider_image’); $slidetitle = get_sub_field(‘slider_title’); $slidebdycpy = get_sub_field(‘slider_body_copy’); ?> <div class=”slick-container”> <h4 class=”info-title text-center”><?php echo $slidetitle; … Read more

Show post/page into div using function

I’m not sure what ARRAY_A is supposed to be, seems unnecessary unless there’s more info we’re missing. Also, get_post returns an object, not an array. Try this: function fields_after_order_details(){ $my_id = 2731; $post_id_2731 = get_post($my_id); $title = $post_id_2731->post_content; echo ‘<div class=”tandc”>’ . $title . ‘</div>’; }