wordpress website- implement search sort and filter - wordpress

i am using avada fusion theme in my wordpress site, different plugins work fine if i need to search posts and pages, but i need to search/sort/filter in a page where i have created 100+ containers/items as a list(like slides or templates).
how can i get it done?
And also what would be a good approach if my list is going to be long i.e 400+ in near future?
re: i have different graphical and text included items in a page with same templates, and i need to search, sort, filter from that list in that page.
I do not see any option to tag or id each template/containers in page which would make search/sort easy.
thank you in advance

Related

Excluding a single category from Wordpress all posts results

I'm looking for a bit of help as I struggle to create a page that has a list of all of my clients' products. Currently I'm using this URL, which works great (with a caveat): http://tayloryourevent.com/?p=*
(note: on her site, both products and blogs are created as posts, but in separate categories)
As you can see, all the products show up nicely, but also included in the mix are blog posts, which I need to hide from that page.
My real problem is that I'm confused by the /?p=* and what that's doing. Since it's a page being created on the fly, I don't know where to look to get a glimpse behind the scenes.
2 questions:
Where is the /?p=* getting its theme from? Could I copy that theme and edit it to exclude the blog category?
-or-
Could I exclude the blog category with some kind of fancy URL work?
This plugin should be able to exclude blog categories: Simply Exclude

Panels linking to articles or pages

New to Drupal. Installed it, set Bartik theme as default, created a few pages with a menu. Now I would like to do something like this:
where the pictures with descriptions link to either other pages or articles. Each of them should have custom size.
What is the simplest way to do it?
For the testing I have created 4 articles on my home page, but obviously they sit one on top of each other. The same happens when I add blocks.
There is not better option to this than to install and use Views module. You can achieve exactly what you want using the nice UI it provides.
You need Views if
You like the default front page view, but you find you want to sort it differently.
You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically.
You use /tracker, but you want to restrict it to posts of a certain type.
You like the idea of the 'article' module, but it doesn't display articles the way you like.
You want a way to display a block with the 5 most recent posts of some particular type.
You want to provide 'unread forum posts'.
You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of "Month, YYYY (X)" where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month.
P.S - Views module is the most used and installed module in Drupal, hence, it will be a part of Drupal 8 core.

Show/Order custom content in Main Page Summary

I am developing a site using Ubercart that shows product summaries on the main page (I believe these are called teasers). Each product has a voting widget provided by Vote Up/Down on its actual node/page. I've copied page.tpl.php to page-front.tpl.php because I want to add a small block or box that shows the number of upvotes on the main page (but not actually allow voting here) and finally sort these teasers by popularity (number of votes).
I can see that print $content is outputting this page's content but I am not sure where this is being generated so I can either hook into it or modify directly. I've coded themes and plugins in Wordpress but I don't know Drupal well enough yet.
Thanks in advance.
You should first know what is generating your front-page. Is it Views? Or another module?
If it's Views, you can easily add the vote count from the Drupal backend. If it's another thing, depending on what it is there are ways to change the output.

Dynamically Generate List of Pages in WordPress

I have a list of pages that I want to list in the sidebar of my site. I have done it before with some posts and have used tags to automatically generate the list of links that have the specific tag. Since you can not add tags to pages, I am not sure what to use to group pages together and then dynamically generate the list of pages as a select menu in the sidebar. I thought about adding a class to each of the pages, but wasn't sure how that would work exactly. Any thoughts you guys have would be great.
If you want to be able to group and sort them, I would look into creating a "Custom Taxonomy" structure. Smashing Magazine has a good article on them: http://wp.smashingmagazine.com/2012/01/04/create-custom-taxonomies-wordpress/
Wordpress itself doesn't support tagging pages likewise in posts. However you can do it by installing a plugin.
Check this link TagPages
This plugin allow you to tag your pages and you will get result like as shown in screenshot. Then you can fetch results on the basis of these tags. Hope this is what you need.

Post privacy in Wordpress

Can a post be hidden from home page, archive view, category lists etc. and viewable only if you have a direct link to it? The blog doesn't have registered readers and is open to public so that would be a mean of hiding some posts from public view without using the password protection.
I asked this question in Wordpress section and the idea there was to use conditional code so I'm asking the question here as well to get closer to the code.
If I used conditioning, would I have to input each post's ID separately to PHP file for archive, categories, search and such?
EDIT:
After reading a bit more all over, I had an idea of creating a private category and then use some kind of conditioning so that posts from that category are hidden. According to Codex, certain category can be hidden from, for example front page but I don't know if there's a way to hide it altogether except when you have a direct link.
Creating a "Private" category is a good solution. It is quite possible to hide this category altogether except via direct link. You just have to "block all the exits" with conditional code.
The default WordPress theme displays posts via the Post Loop. See http://codex.wordpress.org/The_Loop, especially the section entitled "Exclude Posts from Some Category". Just find all the places in your theme's PHP files (e.g. index.php) where this loop is used, and add the conditional code. You'd also need to filter your category list and blog archives in the side menu. Don't add filtering in single.php, otherwise the private post won't display on its own page.
You'd probably want to add a similar condition to filter search results so that private posts aren't leaked via the blog's search tool. There may be more "exits" I haven't thought of, but I'll be sure to update as I do. I'm glad to look at specific code if you so desire.
Understanding WordPress' post query and loop really opens up a world of possibilities for customization.
I found the simplest way - just use Simply Exclude Wordpress plugin. It has the option to exclude each post (or tag, for that matter) from front page, archive, search or feed. It works flawlessly. You can still view the posts by using direct links.
(Not actually an answer that includes code but a working solution nonetheless.)

Resources