by Nick | Jul 10, 2026 | Code, Wordpress
Create this file in your child theme: /wp-content/themes/YOUR-CHILD-THEME/listings/shortcodes/motors-listings-tabs.php Copy the original file from the plugin: motors-car-dealership-classified-listings/templates/shortcodes/motors-listings-tabs.php Then change this...
by Nick | Jun 23, 2026 | Code, Web Design, Wordpress
Add this to the functions.php file add_shortcode('sold_cars', function ($atts) { $atts = shortcode_atts([ 'posts_per_page' => 12, ], $atts); $paged = max(1, get_query_var('paged') ?: get_query_var('page')); $query = new...
by Nick | Feb 6, 2025 | Code
Add this to the functions.php file and then add the shortcode of [dividebyklarna] to get it to show up. function wpb_nick_klarna() { global $product; $klarnaprice = get_post_meta( get_the_ID(), '_regular_price', true); $klarnasaleprice = get_post_meta( get_the_ID(),...
by Nick | Feb 6, 2025 | Code
Add this to the functions.php file and then add the shortcode of [dividebypaypal] to get it to show up. // function that runs when shortcode is called function wpb_nick_paypal() { global $product; $paypalprice = get_post_meta( get_the_ID(), '_regular_price', true);...
by Nick | Jan 23, 2024 | Code, Wordpress
// Disable comments on all post types function df_disable_comments_post_types_support() { $post_types = get_post_types(); foreach ($post_types as $post_type) { if(post_type_supports($post_type, 'comments')) { remove_post_type_support($post_type, 'comments');...
by Nick | Oct 23, 2023 | Code, Wordpress
add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 ); function mytheme_et_project_posttype_args( $args ) { return array_merge( $args, array( 'public' => false, 'exclude_from_search' => false, 'publicly_queryable' => false,...
Recent Comments