What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-27 22:25:01
wordpress get_date
<?php echo get_the_date( 'l F j, Y' ); ?> Add solution -
PHP 2022-03-25 05:40:02
new line php
<?php echo "If you view the page source \r\n you will find a newline in this string."; echo "<br>"; echo nl2br("You will find the \n newlines in this string \r\n on the browser window."); ?> // 2 Way <?php ... Add solution -
PHP 2022-03-24 21:50:46
PHP debugbar - Quick Start
<?php use DebugBar\StandardDebugBar; $debugbar = new StandardDebugBar(); $debugbarRenderer = $debugbar->getJavascriptRenderer(); $debugbar["messages"]->addMessage("hello world!"); ?> <html> <head> ... Add solution -
Javascript 2022-03-15 15:15:11
wordpress ajax url
<?php add_action( 'wp_footer', 'my_ajax_without_file' ); function my_ajax_without_file() { ?> <script type="text/javascript" > jQuery(document).ready(function($) { ajaxurl = '<?php echo admin_url( 'admin-ajax.ph... Add solution -
PHP 2022-03-08 14:00:10
sort acf repeater field alphabetically
<?php // Get repeater value $repeater = get_field('traditional_dining'); // Obtain list of columns foreach ($repeater as $key => $row) { $the_website[$key] = $row['website']; $the_name[$key] = $row['name']; $the_address[$key] = $row['address'];... Add solution