WordPress Loop with Custom Post Type for Bootstrap Accordion [closed]

You put the accordion inside the loop, that’s why it is not working as you want. Try this: <?php $args = array( ‘post_type’ => ‘review’ ); $the_query = new WP_Query($args); ?> <div class=”row mb-5″> <div class=”col-md-9″> <div id=”accordion” role=”tablist” aria-multiselectable=”true”> <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : ?> <?php $the_query->the_post(); ?> … Read more

‘Save settings’ (submit button) ISSET

You question is not well explained, what you want to achieve, here is the suggestion, you can add JS event ONClick into you submit button and define the JS function according to your goals, (for example you want to count submit button click) <script type=”text/javascript”> var clicks = 0; function onClick() { clicks += 1; … Read more

Categories not shown on sidebar

As noted in the comments the issue here is that the sidebar was calling the_category(), which displays only the current category, rather than listing all categories. An even more “WP way” approach is to make the sidebar dynamic. That way, you can use widgets rather than hard-coding what appears in the sidebar. WP has a … Read more

Sorting Woocommerce products by category and attributes

Hi @ColinTravis you can use following function in functions.php : /** * Defines the criteria for sorting with options defined in the method below */ add_filter(‘woocommerce_get_catalog_ordering_args’, ‘custom_woocommerce_get_catalog_ordering_args’); function custom_woocommerce_get_catalog_ordering_args( $args ) { global $wp_query; // Changed the $_SESSION to $_GET if (isset($_GET[‘orderby’])) { // switch ($_GET[‘orderby’]) : // case ‘pa_pub-year’ : $args[‘order’] = ‘ASC’; //$args[‘meta_key’] … Read more

Edit profile fields with TML

copy the profile-form.php file located at template folder inside theme-my-login plugin directory to your theme folder, then you can edit all the look and feel and fields of the profile section.