Forums › Forums › Search & Filter Pro › My topic I posted on Sunday is gone…?
Tagged: archive page, daterange, jquery, shortcode
- This topic has 13 replies, 2 voices, and was last updated 9 years, 7 months ago by Anonymous.
-
Anonymous(Private) May 14, 2015 at 2:34 am #17461
Hi,
I posted my issue/problem on Sunday with the following url: https://support.searchandfilter.com/forums/topic/problems-displaying-results/
And I now when I get back to check the status of my topic it shows PAGE NOT FOUND. ?? What’s wrong?I wrote a really large message describing my issue in details and now I have to write it all again?
Can you please check why was it deleted? On Sunday it was there, today it’s gone.
I will post my problem one more time later today.
Thank you,
DmitriyRoss Moderator(Private) May 14, 2015 at 7:38 am #17473Hi Dimitriy
I had a look in Spam and there is nothing there…
What happened, you posted the topic AND saw it in the forums, but now its just gone?
Very strange :/
Thanks
Anonymous(Private) May 14, 2015 at 8:30 am #17479Here’s the issue I’m having. I want to display search results using one of my template pages (blog masonry style).
I’ve tried both FREE version and PRO. Actually FREE version worked fine even w/o any template modifications, but the problem is it doesn’t allow to selectively display categories and the daterange field doesn’t work (yes I tried it in latest ver. of Chrome and Firefox). In your demo site the datarange fields are working which makes me believe there’s some conflict with either my theme or one of the plugins I’m using.So I’d pretty happy with FREE version if it had options to control which categories appear in the results and I need datefields to work.
Anyway that was with FREE version, now PRO version works partially and only using shortcode method. The results page displays every post I have, it doesn’t filter them by category or tag. When I change the category or tag then results page reloads but it displays all posts every time.
Using archive page doesn’t work at all no mater what custom template I tries, search.php, archive.php, and a coupe others. I guess these need to be modified per your suggestion in FAQ to remove custom query but it’s a bit complicated (it includes some extra functions to allow user selected options in the admin panel of the theme). So I don’t feel qualified enough to do this change myself. Should I send you my template pages for you to look at? And, as I said the daterange fields are not working (perhaps there’s jQuery conflict with another plugin?).
So please can you take a look and give me your advice? The test site url link is : http://rsdasa.5notedesign.ninja/classes/
I can send you my WP login details so you can check my setup.
Thank you,
DmitriyRoss Moderator(Private) May 14, 2015 at 8:44 am #17481Hey Dimitry
I know you said only the shortcode method works, but whats great for debugging is to set up the “a quick tutorial” here:
Please follow this, with no customisations and make sure both shortcodes are on the same page (in the post content) and there are no other S&F forms on the page (such as in sidebars etc)…
This will give you the most basic “clean” version – and I really thing filtering should be working here. If the results are incorrect then you have something else in your theme/other plugins, that is hooking in to this search query and modifying the results –
From here I would suggest to disable all plugins and test again – does the problem still persist? If so, change your theme to a default WP theme and see if the problem persists.
RE the date field – in S&F free, we use the html input type of date – this is not supported accross all browsers yet – but testing in chrome and you should see it fine.
In pro we decided we want to use the default jQuery date picker included with WP for best compatibility – so, if your theme is having problems showing this date picker – I suggest that no matter what plugin you use, if it uses the jQuery date picker it also will not show in your setup (likely because of theme).
I know the date picker is working on your current site (its just invisible)… If you take a look at your site using the inspector (firebug) you will notice at the bottom before the closing HTML tag
<div class="ll-skin-melon"></div>
This is the date picker – and when you click inside a date field you can see the properties change, its just that for some reason your theme is preventing it from being displayed – this might be some CSS or other JS (its also possible its another plugin).
Thanks
Ross Moderator(Private) May 14, 2015 at 8:45 am #17482PS I actually remember this topic as I’d checked out your site, weird :/
Anonymous(Private) May 14, 2015 at 12:10 pm #17489OK, I managed to get shortcode working per your suggestions. I created a new page w/o any sidebar and put both search form and search results shortcodes in it, and it’s started to work. But I noticed that it works only if ‘The relationship between tag, category and taxonomy fields’ is set to either DEFAULT, or OR. AND doesn’t work.
I also tried with both shortcode and S&F widget in the sidebar and it also works!!
Now, how do I use my masonry template to display results instead of your default template you have? As I said the template has a more complex custom query code in it. If I post it here can you give me a suggestion how to modify it?
Thanks,
D.Anonymous(Private) May 14, 2015 at 1:13 pm #17494BTW, your results.php template has a few missing tags:
<?php while ($query->have_posts()) { $query->the_post(); ?> <div> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p><br /><?php the_excerpt(); ?><p> <?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?> <p><?php the_category(); ?><p> <p><?php the_tags(); ?><p> <p><small><?php the_date(); ?></small><p> </div> <hr /> <?php } ?>
Notice a few <p> tags at the end that suppose to be a closing </p> tags.
Ross Moderator(Private) May 17, 2015 at 7:03 pm #17692Hey Dmitriy
To create your layout as you mention is going to require a fair bit of coding – you’ll need some decent knowledge of html/css/js…
Not sure if you’ve read the differences between archive & shortcode methods:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/
Anyway, if you’re trying to create a masonry layout based on something existing in your theme, then the first thing I would do is is copy the html / loop structure from one of your templates that is using masonry,
Either find the PHP file responsible for displaying the masonry layout in your theme directory, or alternatively view the source HTML of a page which is displaying a masonry layout.
You’ll have to copy the html over to your
results.php
– but it might not be straight forward – this will require tweaking.In all cases I’m aware of, any true masonry layout requires Javascript, to make everything fit together and stack nicely. You’ll have to figure out how to trigger the masonry via JS in your theme. You’ll need to load the masonry script whenever the page loads, and whenever new results are loaded in – check the first question on the FAQs on how to detect when new results have loaded –
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
As mentioned above, it requires a certain level of knowledge to get a masonry layout working in your theme.
Alternatively, if you used the archive method (and overcame any issues there), I’m sure the html structure would already be correct, however you would still need to apply the masonry/JS logic to these pages.
Thanks
Ross Moderator(Private) May 17, 2015 at 7:14 pm #17695PS thanks for the catch above RE results template.
-
AuthorPosts