filter FAQs by language?
-
Hi, I use your plugin by placing a [hrf_faqs] tag in my default lang page and another [hrf_faqs] tag in my additional language page. Can I pass a lang argument from outside (from the tag maybe)? I saw it works from within fn_hrf_faqs() function when passed to $faq_args but how can I pass it without code changes? Look at the last argument:
$faq_args = array( 'post_type' => 'hrf_faq', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'ASC', 'lang; => 'bg_BG' // <---- passed here works );Is sth like [hrf_faqs lang=”bg_BG”] doable?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘filter FAQs by language?’ is closed to new replies.