How can i hide a specific class when cart subtotal is above a certain amount
How can i hide a specific class when cart subtotal is above a certain amount
How can i hide a specific class when cart subtotal is above a certain amount
Dynamic Buttons According to URL parameter
Change page content based on dropdown selection
There’s two main ways: You can use the post_password_required() function. This function returns true if the post has a password and false if the post doesn’t have a password, but it also returns false if the post had a password but the user has entered it and unlocked the post. You can get the post … Read more
Isn’t it the one just above <span id=”max-pages” style=”display:none”> ?
You can use get_post_type() function and pass current post id to it. global $post; if(get_post_type($post->ID) == ‘videos’) { // do this } Update <?php global $post; if(get_post_type($post->ID) == ‘videos’) { ?> <video class=”video” width=”https://wordpress.stackexchange.com/questions/91208/<?php echo get_field(“width’); ?>” height=”https://wordpress.stackexchange.com/questions/91208/<?php echo get_field(“height’); ?>” controls preload> <source src=”https://wordpress.stackexchange.com/questions/91208/<?php echo get_field(“mp4′); ?>” media=”only screen and (min-device-width: 960px)”></source> <source src=”https://wordpress.stackexchange.com/questions/91208/<?php … Read more
By default single_cat_title(), a wrapper for single_term_title(), outputs the category name. Try replacing that call with single_cat_title(”,false).
Not sure if I’m understanding you correctly, but if you want to display a special of the day, depending on the day … I have a rough representation of how you could go about doing so. Example: $current_day = date(‘N’);// 1 (for Monday) through 7 (for Sunday) – daily/weekly //$current_day = date(‘j’);// 1 to 31 … Read more
From ACF Documentation: /* * Conditional Statement */ if( get_field(‘field_name’) ) { echo “do something”; } else { echo “do something else”; } So…to check if something is “NOT” checked is just the else of the above.
WordPress provides the is_user_logged_in() function for this. Documentation: https://codex.wordpress.org/Function_Reference/is_user_logged_in You could do something like: <?php if ( is_user_logged_in() ) { // show button to Test_Page } else { // show button to registration page } ?>