What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-16 22:55:34
wp_query item count
<?php $count = $custom_posts->found_posts; ?> Add solution -
PHP 2022-02-02 22:15:11
Obtener datos de usuario registrado en WordPress
<?php $user_info = get_userdata(1); $username = $user_info->user_login; $first_name = $user_info->first_name; $last_name = $user_info->... Add solution -
PHP 2021-11-20 02:44:22
Adding an Item to The Cart codeigniter
<?php echo form_open('path/to/controller/update/method'); ?> <table cellpadding="6" cellspacing="1" style="width:100%" border="0"> <tr> <th>QTY</th> <th>Item Des... Add solution -
PHP 2021-11-12 03:53:11
get ip address of client php
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... Add solution -
Other 2021-11-05 14:59:15
display a list of WordPress custom posts
<?php $loop = new WP_Query( array( 'post_type' => 'article', 'posts_per_page' => 10 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_title( '<h2 class="entry-title"><a href=&... Add solution -
PHP 2021-11-01 09:55:08
Obtener rol de usuario registrado en WordPress
<?php $user_info = get_userdata(1); echo 'Username: ' . $user_info->user_login . "\n"; echo 'User roles: ' . implode(', ', $user_info->roles) . "\n"; &nbs... Add solution