How can I display most commented or viewed post as slide

To display “most viewed” you would need to keep a view count (which WordPress does not do by default). They do, however, keep comment counts. WP Beginner has articles for each of these circumstances: “How to Display Popular Posts by Views in WordPress without a Plugin” “How to Display Most Commented Posts in WordPress Without … Read more

Slide toggle Jquery UI

As jQuery UI is included in the WordPress Core, you don’t need to load it from the CDN. Please try to change your wp_enqueue_scripts from wp_enqueue_script(‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js’, ‘1’, true); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui’), ‘1’, true); to wp_enqueue_script(‘jquery-ui-core’); wp_enqueue_script(‘jquery-effects-slide’); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui-core’,’jquery-effects-slide’), ‘1’, true); Also be sure to call for the … Read more

Slick slider for post doesn’t display anything

look at this example structure : /** * Section Servises */ $servises_info = new WP_query(‘pagename=правни-услуги’); if ($servises_info -> have_posts() ) : while ( $servises_info -> have_posts() ) : $servises_info -> the_post(); // look hire below $relayted_post = new WP_query(‘cat=2&order=ASC’); /* Start the Loop two */ while($relayted_post -> have_posts()): $relayted_post -> the_post(); $servises_data = get_the_content(); // … Read more

How to make jquery slider to start afresh [closed]

HTML <div class=”container” id=”slider-container”> <div id=”slide1″ class=”slider-slide”>My first slide goes here</div> <div id=”slide2″ class=”slider-slide”>My second slide goes here</div> <div id=”slide3″ class=”slider-slide”>My third slide goes here</div> </div> Javascript ( function( $ ){ let firstDIV = currentDIV = $( ‘#slider-container div’ ).first(); if( firstDIV.length > 0 ){ setInterval( () => { currentDIV = currentDIV.hide().next(); if( currentDIV.length === … Read more

add another variable to php function

Well I figured out I could duplicate the function and rename the title so it runs twice. But for future, is there a more elegant way of doing this in one instance? thanks! // orderby slideshows function modify_slider_order($query, $slider_id) { // only alter the order for slider with “x” ID // https://tinyurl.com/zb6hzpc if($slider_id == 17 … Read more

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