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
Annu_tiger
+5
Webelo
+5
Des Wilson
+5
Twbrown
+5
Dreeves
+5
Xoxocrow
+5
Arash.amd
+5
Gaussler
+5
Bread
+5
Kenny W
+5
Chris Crook
+5
Xzhu
+5
Steven Choi
+5
KariEllen
+5
AndrewBC
+5
Static
+5
C. Starr
+5