avera813
Forum Replies Created
-
Forum: Themes and Templates
In reply to: issue with multiple queries in same page@rrm:
So that your page loads quicker with multiple queries, you can use
<div id="div1"><?php include('page.php') ?></div><div id="div2"><?php include('page2.php') ?></div>Forum: Themes and Templates
In reply to: issue with multiple queries in same pageHi,
I’m not sure if you figured out the solution to this, but something I used on theminaretonline.com calls for various queries and counts.
Here’s an example of the code used to pull in content relating to a particular category and the count:
<?php if (have_posts()) : query_posts(array('category__and' => array(49,425),'posts_per_page' => 1, 'cat' => -150,-88,-66,-71)); while (have_posts()) : the_post(); $postdate = get_post_time('Y-m-d'); if ($postdate > $dontdisplay) { ?>You can see that in this example, I am calling an array of an article/post that requires being both category 49 and 425. It is also omitting articles/posts under categories 150,88,66,71 since there could be overlapping content. The count is one.
You can of course modify the count and categories.
Hope this answers your question.
-Alex
Forum: Themes and Templates
In reply to: Help : Gazette Themewhen you add or edit a page, there is a column on the right-hand side of the page where categories can be set. in the same column is something called page_id. 0 is first up to whatever number is last. so if i wanted photos to be before archives, i would set photos to a lower page id than archives