Echo php foreach loop result in 3 column WordPress

How can I show my results in 3 columns like the example below in a div or table? Here is the code <style type=”text/css”> .item { float:left } </style> <?php $data = array(‘item 1′,’item 2′,’item 3′,’item 4′,’item 5′,’item 6′,’item 7′,’item 8′,’item 9′,’item 10′,’item 11′,’item 12′,’item 13’,’item 14 ‘,’item 15’,); $num_item = 5; //we set number…

IIS Server and WordPress cache plugin

Why WP Cache need special settings on Windows The simple reason of slow speed is the editing of web.config vs Apache’s htaccess file. By default, the WP Super and W3 Total Cache are designed to automatically edit htaccess file, not the web.config. I am sure you would have already implemented either of these cache and configured their…

Basic wp_query with Pagination for Genesis StudioPress in WordPress

<?php /** * Template Name: News */ remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); add_action( ‘genesis_loop’, ‘custom_do_loop’ ); function custom_do_loop() { // Intro Text (from page content) echo ”; echo ”. get_the_title() .”; echo ” . get_the_content() ; echo ”; $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $loop = new WP_Query( array( ‘post_type’ => ‘news’, ‘posts_per_page’ => 10,…

How To Create Equal Height Columns using simple jQuery code

Achieving equal height columns with jQuery code is such a common scenario with a few simple solutions. In projects that follow a standard columns with while loop or foreach, it just helps to have all of the columns seemingly stretch to the equal height. It just looks better, cleaner, and more complete. I’m going to…

Sorry, this file type is not permitted for security reasons

WordPress supports uploading the following file types: Images .jpg .jpeg .png .gif .ico Documents .pdf (Portable Document Format; Adobe Acrobat) .doc, .docx (Microsoft Word Document) .ppt, .pptx, .pps, .ppsx (Microsoft PowerPoint Presentation) .odt (OpenDocument Text Document) .xls, .xlsx (Microsoft Excel Document) .psd (Adobe Photoshop Document) Audio .mp3 .m4a .ogg .wav Video .mp4, .m4v (MPEG-4) .mov…

Tracking Script Installation in WooCommerce

Google will give a Tracking code like the code below /* get_total(); ?>; var google_conversion_currency = “USD”; var google_remarketing_only = false; /* ]]> */ //www.googleadservices.com/pagead/conversion.js <noscript> </noscript> Here in this code locate the code var google_conversion_value = 1.00; Duplicate the  PHP file named thankyou.php located in woocommerce/checkout/thankyou.php plugin directory to the theme folder /wp-content/themes/theme-directory/woocommerce/checkout/ and…

Display Woocommerce Product category Description on all Category Pages

Out of the box, WooCommerce displays the product category description only on the first page of the category archive. In other words, if the category contains a bunch of products and is paginated, the category description will not be shown on page 2, 3, etc. But what if you want to display the category description…

If repeater field has 1 rows, 2 rows etc

I was wondering if this is at all possible: I’d like a repeater loop that basically has some sort of count that says if row 1 has value then do this, if row 2 has a value do this and this. Basically what I’m trying to achieve is if row 1 has a value display…

WordPress Date Formats

Converting to different date formats $start_date = DateTime::createFromFormat(‘m-d-Y H’), $mVal[‘start_date_format’]); $end_date = DateTime::createFromFormat(‘m-d-Y H’, $mVal[‘end_date_format’]) ; echo $start_date->format(‘Y-m-d’); echo $end_date->format(‘Y-m-d’);