sd1
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Third-party plugin shortcodeHi Shelby
Thanks for your offer to help.
I think the problem lies with the theme, Genesis Framework.
Is it possible to PM you the live link? I don’t see a way to PM you on your profile.
Forum: Plugins
In reply to: [The Events Calendar] Third-party plugin shortcodeAnother issue that I have noticed is that the ‘read more’ is linking back to the archive page rather than the single event page, is this normal?
Forum: Plugins
In reply to: [FooGallery Owl Carousel Template] scrollperpageOh that’s great, thank you!
Forum: Plugins
In reply to: [FooGallery Owl Carousel Template] scrollperpageThank you. In the meantime, is there any way I can override the settings in functions.php for example using ScrollperPage?
- This reply was modified 9 years, 7 months ago by sd1.
Forum: Plugins
In reply to: [FooGallery Owl Carousel Template] scrollperpageSee footer of this page microfinance-pasifika.org
If you click on a dot, the full page of images scrolls but the autoplay doesn’t scroll per page, it advances images only one by one. The autoplay should work like the footer on this page bwtp.org
Forum: Plugins
In reply to: [FooGallery Owl Carousel Template] scrollperpageSorry I should have been more clear. My settings are already set to disabled Navigation and enabled Pagination but the autoplay scrolls per item not per page. Is there a way to ensure the autoplay scrolls per page?
Forum: Plugins
In reply to: [The Events Calendar] hyperlink inside no results found messageOK that didn’t work. What I’m trying to achieve is for the code to be output as an actual hyperlink from the echo which is within the filter, rather than output as a string with a href etc.
Forum: Plugins
In reply to: [The Events Calendar] hyperlink inside no results found messageThanks Geoff, the problem is I had tried that already but the link is output as a string rather than a hyperlink. So the result looks something like this:
No events found. Views past events here.
Instead of something like this:
No events found. View past events
- here
.
.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Search by Post DateIf you insert the first block of code above in your theme’s function file, then the fields should show up on the search form on the front-end. If you used my edited code above, did you enter the correct form ID? Are you using a child theme and if so, did you remember to edit the child theme’s function file rather than the parent theme’s function file?
If you are still having trouble, post your function file code here and I will take a look. I’m not an expert but maybe I can help.
I will try with the default theme and report back but I am thinking it might be a problem with the server configuration since it works perfectly on my localhost setup. Is there a line of code that I can maybe add to the htaccess file to test if I can prevent this problem? the other thing I have noticed is that sometimes the “there is error” appears for a few seconds first and then the results show up and other times, “there is error” stays there.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Search by Post DateWith some minor adjustments, I have it working, thank you so much for your assistance!
First in functions.php file, add the drop-down fields to the search form, including the form ID if applicable:
add_action('uwpqsf_form_bottom', 'add_years_field'); function add_years_field($atts){ if($atts['id'] == '4863'){ echo '<label>Years</label>'; echo '<select name="byyear" >';//the name attribute is important, it will be used later. echo '<option value="2012">2012</option>'; echo '<option value="2013">2013</option>'; echo '<option value="2014">2014</option>'; echo '</select>'; } }I changed:
add_years_field($atts)()to:
add_years_field($atts)and:
if(atts['id']to:
if($atts['id']Secondly, search the posts by published date:
add_filter('uwpqsf_query_args', 'add_years_query','',3); function add_years_query($args, $id,$getdata){ if(isset($getdata['byyear']) ) {//only add the query if user enter the byyear input $args['date_query'] = array( array( 'year' => $getdata['byyear'], ), ); } return $args; }I removed this section of code:
&& !empty($getadata['byyear'])I hope I didn’t do anything too drastic and thank you again for your incredible support.
I am having the same problem with the keyword search. When I enter a keyword the first time, before the results are display it says “there is error”. After a few seconds, the results are displayed. The second time I enter the keyword, the results are shown without the error.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Search by Post DateWhat I mean is the published year needs to be retrived from the database table
wp_posts.post_date.Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Search by Post DateThank you for your response and assistance.
I have put the code in the functions file but there are two issues:
– I have multiple search forms on the website and I only need to search by published date on one of the forms but the input field is showing up on all the forms. Is there a way to identify the specific form in the code so that the input field only shows up on that particular form?
– The second issue is that it doesn’t seem to be searching by post-date. For example, if I search ‘2012’, the results are posts from 2016 in descending order.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Search by Post DateJust search by year. Sorry I should have mentioned that!