On my website currently I have two different pages that I will also be creating categories for, with the same name. I would like to have two different content sliders, one pulling from each of the individual categories, so I can post articles and have them only show up in the slider of the relevant page. The plugins I've found for Wordpress so far only allow me to set up one slider that pulls from a category, not two.
What would be the best plugin (or hand coded solution) to solve this problem?
try using slimbox plugin and combining it with http://cssglobe.com/lab/easyslider1.7/03.html
Related
I've managed to create a tab in the admin panel of Wordpress using add_menu_page(); Within the function for that menu page, how do I make it so that it shows the pages I want it to, similar to the default Pages tab, except I want to query it to a specific category.
A standard wp_query get posts does not seem to work here. I've tried looking on google for my situation, but either I am poor at describing it, or it is not a common situation.
I am trying to create a Wordpress image gallery which does a few things that no one plugin seems to do on its own.
Basically I want to:
1. split the media library into categories/albums
2. display every image from those albums mixed together on the same page in a masonry style layout (An image from category a, then an image from category b, then an image from category c etc etc)
3. bring up a lightbox when an image is clicked that only cycles through images from the same category
The difficulty is that I'm not sure where to begin, so I'm looking for some ideas on how I should approach it. Would starting with a plugin which separates the media library into categories/albums be a good place to start? Could the native Wordpress masonry/tiled gallery and lightbox be adapted to do the rest?
Update: I've registered new taxonomy which applies to attachments, so the images now belong to categories
Really sorry for not giving a better starting point!
To sum my understanding of what you need: You need posts, with attached images that belong to categories.
Replying to your points:
Forget about splitting the media library;
You just loop through the posts;
You install a simple lightbox gallery plugin and only loop the posts you need.
To accomplish this:
Register a custom post type (which I saw you already did);
Create your custom posts, associate the images and give them a category;
Install masonry (doesn't matter the way it looks right now) and loop the featured images;
With a lightbox plugin, pass the ID of the clicked item, go get the category and loop it so users can check the images of the same categories.
I am making my first custom WordPress theme and i ran into my first big wall.
I have different content. I have videos and articles and photos. I need to display these pages differently.
Should i just add a category and display them differently that way? i think this is easy but i am having trouble Googling this problem.
You can create custom template for each page and then set them according to your requirement.
Reference Link
Example Link
this may help :
Creating_Your_Own_Page_Templates
wordpress custome Pages
I am having some problems structuring a Wordpress Website.
Basically this website will have the following pages:
Home
Portfolio
News
Contact
The home will be designed by the index.php, that is no problem. In this page I will show some of the posts that should be in the News and some that should appear in Portfolio.
The pages Portfolio and News should present a list of posts that match this category.
Contact is a normal static page.
My idea was to create a static page for portfolio and for news and to change its theme so I get a list of posts matching this category and handle it. But I found out that this does not work as I thought because pages are not meant to this. For this reason some functions (as the_content) do not work. So I found about Category Templates, which seem exactly what I want.
But now my problem is: my menu is being built automatically and I find it nice. Using the category page template would cause me to need to build it manually, which looks like (for a newbie) a bad smell, once it can be built automatically.
Is the approach with Home->index.php, news and portfolio -> category template and contact -> static page a nice approach?
How would I build the menu in a elegant way with this approach?
Thanks!
Oscar
I don't think your approach was the best, I would have used page templates to pull the different layout/type of pages and use the front-page.php to create the homepage.
But every dev has his own way, I guess.
I think you can easily solve your problem building the menu with the built-in menu builder of wordpress. You can go in Appearance > Menu if your theme is compatible with that.
Check further documentation here
hope it helps!
cheers
In wordpress you can add static page or categories or any other pages to wordpress menu. For creating menu in wordpress see this links.
creating menu
Some friends of mine am starting an art blog and am aiming to use WordPress for usability reasons as their PHP/HTML/CSS experience is minimal. However, we are running into a roadblock in that we are finding it difficult to accomplish multi-level navigation within Wordpress: that is; for each WordPress 'page', there must be several 'sub-pages'. For example, each artist page (eg Zac) must have several separate sub-pages: an "About", a "Gallery" (which will be accomplished with a separate WordPress plugin) and a blog sorted by a specific category. An additional road block is presented in the form that each sub-page navigation must be separate from the main navigation: ie, not a drop-down menu, but rather a separate menu located elsewhere on the page.
I've looked around at some WordPress multi-level navigation plugins but haven't found any that adequately meet these needs. Has anyone had the same problem, and if so, how did you work around it? Is there a suitable plugin or will I need to create a separate Page template and then hand-code About/Gallery sections in separate PHP files?
Thanks!
I normally use categories to do that. What I suggest you to do is to create a category for each person and then create sub-categories, sub-pages or posts under each one.
You can then create template that will target different type of pages, you can also target some keywords.