WordPress codex for page
How to get the current page slug?
global $post; $slug = get_post( $post )->post_name;
Click every tab to get the sample options and se the screenshot image. [anton-accordion cat=”270″]
function woocommerce_shop_ordering_add_option( $sort_args ){ $orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); if ( 'alphabetical' == $orderby_value ) { $sort_args['meta_key'] = 'property_priority'; $sort_args['orderby'] = 'meta_value'; $sort_args['order'] = 'DESC'; } return $sort_args; } add_filter( 'woocommerce_get_catalog_ordering_args', 'woocommerce_shop_ordering_add_option' ); function woocommerce_catalog_orderby_add_option( $sortby ) { $sortby['alphabetical'] = 'Sort by STC'; return…
str_replace( array( '<', '>', '/', ',', '{', '}', '?', '*' ), '', $value[0]->post_content )
var iframe_url = 'http://www.wala.com/'; var cacheParamValue = (new Date()).getTime() * 1000; var url = iframe_url + "?cache=" + cacheParamValue; jQuery( 'iframe' ).attr( 'src', url ); Output: <iframe width="100%" height="99%" src="http://www.wala.com/?cache=1406685294271000"></iframe>
Step 1 Think about the name of your plugin. Step 2 Example is Shortcode URL plugin. Create a shortcode-url folder name inside of wp-content/plugins/. Step 3 Create shortcode-url.php file inside wp-content/plugins/ folder and put the codes below inside of your shortcode-url.php file. <?php /** * Plugin Name: Shortcode URL * Plugin URI: https://www.anthonypagaycarbon.com/ * Description: Shortcode URL is…
How to add a new WordPress user using CPANEL access? Here are some tips to do that. Please read below. Step 1: Login to your CPANEL dashboard. Step 2: Go to your PHPMYADMIN page where you can edit your database. Step 3: Select your wp_user table and click copy button. See image below. Step 4:…