Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter growmedia

    (@growmedia)

    I answer myself:

    add_filter('posts_clauses', 'join_and_order');
    function join_and_order($posts_clauses)
    {
    	global $wpdb;
    	// only change query on WooCommerce loops
    		$posts_clauses['join'] .= " left JOIN dh467t_puvc ON dh467t_puvc.puvc_id = dh467t_posts.ID";
    		$posts_clauses['orderby'] = " dh467t_puvc.puvc_view_count desc, " . $posts_clauses['orderby'];
    	
    	return $posts_clauses;
    }
    Thread Starter growmedia

    (@growmedia)

    Hi again!

    I found the problem, but I cannot find the solution…

    You put this <span class=”ez-toc-section” id=”Book_your_accommodation_now!”></span> in the html, but there’s some sections of <h2> that are well displayed in the TOC but not in the html inserted in the code.

    I use in this web WP Bakery composer, but the other sections are all the same…

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)