What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-17 14:10:32
true not true acf
<?php if ( get_field( 'field_name' ) ): ?> This is displayed when the field_name is TRUE or has a value. <?php else: // field_name returned false ?> This is displayed when the field is FALSE, NULL or the field does not exist. <?php endi... Add solution -
Other 2022-03-15 22:50:31
google analytics kirby
Yes, like this: <?php if(!cookie::exists('accepted')) { cookie::set('accepted', 'true', 1440); } ?> This code checks if the cookie with the name “accepted” has already been set, if not, the cookie is set with the value “true&rd... Add solution -
Other 2022-02-13 19:10:03
keep incrimenting post offset in a custom query
<?php // the query $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : ?> <!-- pagination here --> <!-- the loop --> &n... Add solution -
PHP 2021-12-23 16:08:26
pluck only category name and id from model in laravel
<select name="category" class="form-control"> @foreach($categories as $category) <option value="{{ $category->id }}" <?php if($hotel->category_id == $category->id) { echo "selected";}?>... Add solution
Best helpers
Jared Johns
+5
Iammrigank
+5
Franklinm
+5
Brilliand
+5
Alan Huang
+5
ElHaix
+5
Mcwumbly
+5
Kos
+5
Rgb66rgb
+5
Saphryn
+5
Brett
+5
Brauner
+5
Dani Pop
+5
Jjr
+5
Haim770
+5
Moonlight
+5
Armstrongest
+5
Mae
+5
Csamson
+5
Elarrow
+5
Ryan Zell17
+5
Jinzal
+5
Goldname
+5
Lim Kean An
+5
JAPPAN KAUR
+5