skip to Main Content

PHP echo field, field appears before div – WordPress

I have the following code: if( get_field('event_timedate') ): echo "<div class='bm-event_timedate'><p>".the_field('event_timedate')."</p></div>"; endif; But for some reason the output is (the date appears before the div and p tags) 27/08/2022 8:00pm <div class='bm-event_timedate'><p>".the_field('event_timedate')."</p></div> Id really appreciate any help, thanks in advance!

VIEW QUESTION

WordPress pagination with WP_Query not working

This is my code. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $next_args = array( 'post_type' => 'articles', 'post_status' => 'publish', 'posts_per_page' => 3, // post per page 'paged' => $paged, ); $next_the_query = new WP_Query($next_args); if ($next_the_query->have_posts()) : ?>…

VIEW QUESTION

Decrease padding ul wordpress

I want to decrease the padding of my ul, right now it's 40 (I think). This code works to make the padding zero: ul { padding: 0; list-style-type: none; } Using this code above works but it can only be…

VIEW QUESTION
Back To Top
Search