Random Post in Related Post Neel February 8, 2022 function custom_pre_get_posts($wp_query) { $wp_query->set(‘orderby’, ‘rand’); $wp_query->set(‘order’, ‘ASC’); } add_action(‘pre_get_posts’, ‘custom_pre_get_posts’);
MemberPress Check active add_action ( ‘template_redirect’, ‘redirect_custom_nonactive’ );function redirect_custom_nonactive(){if ( current_user_can(‘mepr-active’) && is_front_page() ) {echo ‘Welcome, active member user!’;}else { echo ‘Welcome, non-active registered user!’;} } Neel March 28, 2022
Swap Position of Items in li jQuery( document ).ready( function(){$(‘#item2’).insertBefore(‘#item1’);}); Neel February 15, 2022
Updating Memberpress Default Values jQuery(document).ready(function( $ ){ $(“label[for=’user_login1′]”).text(‘Input your preferred username for the challenge*’); $(“label[for=’mepr-address-state1′]”).text(‘State/Province if not available then put country*’); }); Neel August 14, 2020
Importance Of WordPress Plugins The particular function of WordPress offers opened up endless options recently, taking this to a new stage no longer restricted to a blog. Having a… Neel March 8, 2012 0 Comments