sdcr
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldSure thing. Just did it actually. Thanks again for the great work and support.
Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldThat’s it! Works beautifully. Thanks a lot.
Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldThanks for the updates. I copied and pasted it into functions.php It doesn’t seems to do anything for me. If I change it to
return false;
then it gets turned off globally. Still want to know if I can turn it off ONLY within:if ($query->is_search() && 'staff' === get_query_var('post_type'))
as commented previously. Let me know if the question wasn’t clear. Thanks again for your time.Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldHow do I turn off the ACF better search for the custom post type search only? In the other words put those together in some way.
function _s_staff_query($query) { if ($query->is_search() && 'staff' === get_query_var('post_type')) { $query->query_vars['orderby'] = 'name'; $query->query_vars['order'] = 'ASC'; } } add_action('parse_query', '_s_staff_query');
and
function acfbs_is_available( $status ) { return true; } add_filter( 'acfbs_is_available', 'acfbs_is_available' );
Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldIf I wrap the search filters into
acfbs_is_available
it worked. However if the plugin is disabled, then everything inside won’t get executed. Is there any other way to turn off ACF search?Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldThanks for the quick reply. I tried few ways but couldn’t incorporated it into the search filters below. Help please!
function _s_staff_query($query) { if ($query->is_search() && 'staff' === get_query_var('post_type')) { $query->query_vars['orderby'] = 'name'; $query->query_vars['order'] = 'ASC'; } } add_action('parse_query', '_s_staff_query');
Of course, it shouldn’t affect the global site search form, which just uses the default settings, no additional filters for it.
- This reply was modified 5 years, 6 months ago by sdcr.
Forum: Plugins
In reply to: [ACF: Better Search] Exclude from custom search fieldIf I change the name=”s” on my custom post type search form. The search results are messed up. Is there a way to exclude ACF from the custom search form? But keep it for the global site search form?
Forum: Plugins
In reply to: [WP Pubmed Reflist] Not display most recent and correct number of listThat’s great! no more errors. I guess the
register_sidebar
may complain about yourfunctions.php
, not related to the plugin.Very often I develop static html sites, do you have any suggestions to make it work without WordPress? Is there a JavaScript powered version?
- This reply was modified 7 years, 1 month ago by sdcr.
Forum: Plugins
In reply to: [WP Pubmed Reflist] Not display most recent and correct number of listThanks for the reply. It is working now, very strange!
A few other points that should be fixed in my opinion:
<a href=https://www.ncbi.nlm.nih.gov/pubmed?term=XXX>Search PubMed</a>
Missing quoteshref="..."
Warning: array_key_exists() expects parameter 2 to be array, null given in /.../wp-content/plugins/wp-pubmed-reflist/class.wpPubMedRefList.php on line 178
Errors if you set
define( 'WP_DEBUG', true );
Do you have the plugin that also work with static html, not in WordPress?
- This reply was modified 7 years, 1 month ago by sdcr.
Forum: Plugins
In reply to: [MP3-jPlayer] Stopping working on WordPress 4.1Updates: deactivate and activate it again, seems to fix it.
Forum: Fixing WordPress
In reply to: add a page to sidebarIt might work. But I’d have to do it without the plugin.
Basically, include a template and it’s content into sidebar.php.Thanks!
Forum: Fixing WordPress
In reply to: previous_post_link arrow positionthank you very much t-p!
Forum: Fixing WordPress
In reply to: wp_get_archives with countlovely:) thanks!
Forum: Fixing WordPress
In reply to: previous_post_link arrow positionthanks t-p, i really wish wordpress team could development a 3.0 theme framework that is especially for the developers.
Forum: Fixing WordPress
In reply to: previous_post_link arrow positionYes, I’ve found that. Thanks.
Can you or anybody answer the other questions please?