Let Users Filter Posts by Custom Fields

Question
I'm using the Advanced Custom Fields plugin to add custom fields to my posts, but was wondering what is the best way to go about creating a filter box for the user to filter through posts.
0
17 hours 0 Answers 7 views

How to filter menu of categories on attribute archive pages

Question
The following PHP displays menu of WooCommerce product categories: <?php $orderby = 'name';$order = 'asc'; $hide_empty = true ;$cat_args = array( 'orderby' => $orderby, 'order' =>$order, ...
0
2 days 0 Answers 8 views

Ajax filter – show all results that contain at least one filter

Question
For a project I use Timber (TWIG) with WordPress. I'm trying to implement ajax filter with tags on a video template. But it doesn't work like I would like. For the moment my system is too strict. Filters combine in the ...
0
2 days 0 Answers 3 views

WooCommerce: How to filter menu of categories on attribute archive pages

Question
The following PHP displays menu of product categories: <?php $orderby = 'name';$order = 'asc'; $hide_empty = true ;$cat_args = array( 'orderby' => $orderby, 'order' =>$order, ...
0
3 days 0 Answers 12 views

Formatting product prices in email orders

Question
I’m trying to format prices in case of Indian Rupees. Below is my code and it works in case of email order on hold but how to make it work in case of order-complete? //Indian Currency Formatter add_filter( 'formatted_woocommerce_price','ind_currency_formatter', ...
0
5 days 0 Answers 14 views

How do I hide the current page’s title?

Question
I have this code: add_filter( 'the_title', function() { return ""; }); Or, respecting the hook's arguments: function remove_title( $title,$id ) { $title = ''; return$title; } add_filter( 'the_title', 'remove_title', 999, 2); Which is being placed in ...
0
5 days 0 Answers 11 views

Moving beadcrumbs to different part of the page with hook and action

Question
I am using the Avada theme, and WooCommerce. This is mostly a question about hook / filter syntax and usage. I need to move the breadcrumbs from the normal place, inside the page title bar, another place on the page. I ...
0
6 days 0 Answers 16 views

Question
Is it possible to fetch apply_filters value some other place like a global variable? function one(){ $value = 'default'; .... some functionality to set$value return apply_filters( 'this_is_filter', $value ); } add_filter( 'this_is_filter', function( ... 0 1 week 0 Answers 16 views add_filter() function misunderstanding Question I'm studying the theme "one page" and there is the following code: function onepage_sections() {$sections = array(); $sections['service_section'] = array( 'id' => 'service_section', 'label' => __('Service Section', 'one-page'), 'callback' => 'onepage_service_section', );$sections['blog_section'] = array( ...
0
1 week 0 Answers 17 views