Hi, is there a setting where i can select to use the PhotoQ system on pages not posts?
Use On Pages Not Posts?
(7 posts) (2 voices)-
Posted 2 years ago #
-
Thought i'd add a bit more detail...
What i'm trying to achieve is: a different gallery thumb page for each of my gallery sections - similar to the "photos" page in the iQ2 demo page http://www.whoismanu.com/iq2-demo/
but rather than just a single "photos" page, i'd like a dedicated "wedding photos" page, "fashion photos" page, etc. This is because i'd like to have different supporting text on those pages.
looking at the source for the theme i can see that the archive pulls all photos so i'm guessing there must be away to select a specific category only and duplicate the archive page as required???
any help would be great, thanks
Posted 2 years ago # -
Just an update to this question...
I've been playing around with this a bit and the main issue seems to be when i duplicate the archive page and rip some code from the page.php page (to combine theme) that the main post text over rides all the photoQ side, so rather than a series of thumbs i get a duplicate of the main text - i'm guessing this is due to the way the query is run to fetch the data - but that's where my knowledge of WordPress ends.
I require the page to fetch the main page post text from the (WP set theme) page called "wedding photos", then on the same page fetch all the posts (photoQ posts) from the post category called "wedding photos"...
sorry for the continuous posts - having a bored Sunday and this has me puzzled!
Posted 2 years ago # -
hi,
i think you might be able to do sth like this with a category template. read here for details: http://codex.wordpress.org/Category_Templates
the photoq file that shows categories is archive.php
hope this helps
Posted 2 years ago # -
Hi,
What i can't work out is how to pass the "include" or "exclude" values through your query - it looks different to anything i've worked with before pos due to the use of classes in $iQ2Theme.
Do you know what i need to put in the query below to pull data/posts from a single category?
if (is_category() || is_archive()) { $posts = query_posts($query_string .'&'. $iQ2Theme->getPagedArchiveQuery()); }
I think i'll still be left with the issue of the main post (text) overiding the query - but i'll cross that bridge next.
Thanks
James
Posted 2 years ago # -
Also,
there is no category page in the iQ2 Theme - is this something i must create? is it just the archive page copied, re-named and the theme page name written in the code at the top?
hope that makes sense, i'm sure this is a simple thing i'm just not seeing it.
Thanks
James
Posted 2 years ago # -
well there is, via the archive.php (not archives.php) category template. see e.g. http://www.whoismanu.com/iq2-demo/?cat=6 on the iq2 demo. that's the category page for category id 6 (=landscape).
and yes, i guess what you need to do is exactly copy this one, rename as explained in the codex post to match your category id and add the custom stuff you want in your category.
if you go with these category templates you should not need to handcraft any queries.Posted 2 years ago #
Reply
You must log in to post.
resolved