Trevor
Forum Replies Created
-
Trevor in reply to:
training/consulting(Private) March 28, 2016 at 7:43 am #40650This reply has been marked as private.Trevor in reply to:
Display result with current theme(Private) March 28, 2016 at 7:38 am #40649Hi
Sorry we did not pick this thread up earlier. I will be handling it now. Are you saying that you have a search that appears on various pages, let’s say ‘Deals Arizona’, ‘Deals California’, etc but that when the results are submitted, they always go back to a general deals page?
Trevor in reply to:
How to Setup Like your demo woocommerce(Private) March 27, 2016 at 8:28 pm #406191. The search box at the top is part of the mystile theme from woothemes
2. The left sidebar is simply one of the templates, and whilst I did not make theat demo, you make a search form, set the display type to WooCommerce Shop and perhaps place the shortcode in that sidebar?
Maybe Ross can confirm that part.
Trevor in reply to:
Problem caching _sft_category(Private) March 27, 2016 at 6:30 pm #40616I have reported it as a possible bug.
Trevor in reply to:
Page titles/empty pages/filters(Private) March 27, 2016 at 8:13 am #40606Hi
Are you using the Enable Auto Count option on the General Settings Tab?
1 and 2 are functions of the theme you are using I think. 1 can sometimes be modified with a setting in Yoast SEO if you have that installed.
Trevor in reply to:
Problem caching _sft_category(Private) March 27, 2016 at 8:08 am #40605Whilst waiting for Ross to cast his eyes of this, can I ask a few questions?
What version of PHP are you using, and is display_errors switched on in PHP? If you do’t know how to discover the answers to these questions, install a plugin called phpinfo-print (its free) and at the top will be the answer to the version and inside the Core section will be the other answer.
If display_errors in ON, note that the PHP manual says it should be off for production servers.
Trevor in reply to:
Annual/Monthly Archive Dropdown Filter(Private) March 27, 2016 at 7:54 am #40604I think it could be done in code in S&F without too much effort; the only thing slowing it down would be the need to find the oldest year, but maybe this could be resolved by the designer manually defining that.
I think, as you say, this would be for Ross to consider.
Trevor in reply to:
Help with Image in Media Library Display(Private) March 26, 2016 at 5:13 pm #40594This reply has been marked as private.Trevor in reply to:
Help with Image in Media Library Display(Private) March 26, 2016 at 5:10 pm #40593Hi Collete
To get me up to speed as quickly as possible and to get you sorted, are we able to discuss this over Skype? I will send a second message with my details.
Trevor in reply to:
Annual/Monthly Archive Dropdown Filter(Private) March 26, 2016 at 8:34 am #40582Ross may wish to chime in here, but as I am awake this early, I will answer by way of a rambling of my initial thoughts, if I may?
Dates (such as ‘post date’) are not stored in databases the way we read them. Instead they are typically stored as days and fractions of days. So day 0 might be 01/01/1900, day 1 might then be 01/02/1900 and so on. To find the year the system has to first convert the days stored to a date that we understand, extract the year part and give us that. That places an overhead on the system. So, instead, lets us say we want to see all posts from 2014. 01/01/2014 is day 41640 and 12/31/2014 is day 42004 so what we ask the database to do is to find all posts with
'post date' >= 41640 && <= 42004
The S&F Pro Post Date does not have the option to extract, sort and collate just the years, and the CPU overhead for this at page load/reload might be an issue.
You could set the Post Date element to Date range and then hide it by using this custom code:
.sf_date_field {display: none;}
And then use Javscript to replace the field title that you had set, say maybe
<h4>Date</h4>
or whatever with a selects for the date that the javascript pre-fills with years in the visible part but whose values are January 1 of that year. When the field is changed by the user, another script copies that start date to the hidden form’s start date, then works out from that date what the year end date is and copies that to the hidden end date form control and then triggers the S&F update form function.A bit messy for what seems a ‘simple’ request!!
Just my thoughts …..
-
AuthorPosts