How to make featured area?

You need an update method which saves your widget settings: function update( $new_instance, $instance ) { for ( $i=0; $i < 3; $i++ ) $instance[ “link_target_$i” ] = $new_instance[ “link_target_$i” ]; return $instance; }

Dropdown switching subcategories portfolio

The ‘child_of’ argument lets you select subcategories from a parent category, and a you can get the current taxonomy id to pass as the value: <?php $category_id = get_queried_object_id(); $args = array( ‘hide_empty’=>1, ‘depth’=>1, ‘hierarchical’=> 0, ‘show_count’=> 1, ‘taxonomy’=> ‘portfolio-types’, ‘child_of’ => $category_id ); ?> <ul> <?php wp_dropdown_categories( $args ); ?> </ul> So in the … Read more

JQuery Login Dropdown not functioning in theme

its working now:- jQuery(function() { var $button = jQuery(‘#loginButton’); var $box = jQuery(‘#site-crhead’); var $form = jQuery(‘#loginForm’); $button.live(‘click’,function(login) { console.log($box); $box.toggle(); $button.toggleClass(‘active’); }); $form.live(‘click’,function() { return false; }); jQuery(this).live(‘click’,function(login) { if(!(jQuery(login.target).parent(‘#loginButton’).length > 0)) { $button.removeClass(‘active’); $box.hide(); } }); }); Just update your code according to you, even your mouseup function was not working, according to … Read more

dropdown with no submit

You can use “get_page_link” function to Retrieves the permalink for the current page (if in The Loop) or any arbitrary page ID if passed as the first argument. something like this: <a href=”https://wordpress.stackexchange.com/questions/219011/<?php echo get_page_link( $page->ID ); ?>”><?php echo $page->post_title; ?></a> Reference: https://codex.wordpress.org/Function_Reference/get_page_link

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)