Kieran McClung
  • Member for 7 years, 8 months
  • Last seen this week
Filter posts by author and category simultaneously
Accepted answer
3 votes

If you want your visitors to choose the category and author you can use the code below. If your loop in the template hasn't been changed you should get away with adding a query to the URL like so: ...

View answer
Grid post page on Wordpress with Bootstrap, the_excerpt(); Problem
2 votes

The way I tackle this issue is by closing the row every nth column, like so. You basically collect the total number of posts in the current loop then at the end of each loop, increment $i and check ...

View answer
Displaying post per day
Accepted answer
2 votes

This is quite basic but should help you on your way. //Get posts for the current week $args = array( 'date_query' => array( array( 'year' => date( 'Y' ), '...

View answer
Custom Theme Bootstrap
Accepted answer
2 votes

If you have a LESS version of Bootstrap (non-compiled) you need to change the @grid-float-breakpoint variable to 992px to get the navbar to collapse on "Tablet" (Medium) breakpoint. Source: ...

View answer
Assign a minimum result count for WooCommerce query shortcodes?
Accepted answer
1 votes

I don't think there is a native shortcode for recently viewed products but, again, there are two options here. One is to use the widget with a unique sidebar, wrapped in a condition, or you can create ...

View answer
Allow anonymous comments just in a custom post type
Accepted answer
1 votes

There may be a better way around this but I would allow comments on the entire site and make sure that your custom post type supports comments: <?php register_post_type( 'custom', array( // .....

View answer
Using Advanced Custom Fields Relationship Field to select a taxonomy term
Accepted answer
1 votes

This is based on the assumption that you have a custom field called "show_on_tax" for the custom taxonomy "Directory Entry Type", which appears when editing a small banner (See image below). This ...

View answer
Using functions.php to include code that's processed inline
1 votes

After reviewing your updated code it might be better to use template parts to achieve this. The idea is that you have a directory containing various template parts, which can then be called into the ...

View answer
Woocommerce product catalog, products with different description
Accepted answer
0 votes

This is quite an undertaking and difficult to answer thoroughly but this should help you on your way. I would definitely stick with variations because it makes sense from a site structure and ...

View answer
How to add input search field with roudned corners?
Accepted answer
0 votes

Your markup is technically correct with the exception of your first line of css. You need to remove the e before the .searchform declaration for it to accept those styles. The code below is working ...

View answer
Wordpress search form and search result through ACF field in custom taxonomy
Accepted answer
0 votes

This should hopefully help you on your way, although I've not fully tested it... The basic search form here which will load the site_url() with appended search query string. You should change this to ...

View answer
Ordering a specific post type
Accepted answer
0 votes

Update I've found the solution, by first filtering with is_main_query(), and then using the is_post_type_archive( 'tribe_events' ) conditional statement as was proposed in the first answer. function ...

View answer
Port existing Bootstrap site to WordPress?
0 votes

Unfortunately, to my knowledge, there is no 'easy way' to do this. That said you shouldn't have to redesign your site from scratch and would get way with building a custom WordPress Theme yourself. ...

View answer
Why is this script not working?
0 votes

I think the issue that the Google maps API isn't loading correctly. You need to make sure that the both jQuery and Google maps API are being loaded. https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/...

View answer