Jump to content

Search the Community

Showing results for tags 'wp_query'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 2 results

  1. Hello, I use pagelines framework on a web site i am building. I use the Base Theme. I configure a page like a home page that i am customizing. Now i have installed a classifieds plugin and i've already created the wp_query to fetch classified from database. But i don't know the file in i have to add my code to display classifieds on my home page ? Could you help me please ? Thanks
  2. Displaying posts categories separately on a single page. Hello, On any "standard" WP template, one can easily display on a single page several blog posts categories, in separate blocs, using the following code and parameters: <h3>Featured Category 1</h3> <ul> <?php $recent = new WP_Query("cat=1&showposts=3&offset=1"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> <h3>Featured Category 2</h3> <ul> <?php $recent = new WP_Query("cat=2&showposts=3&offset=1"); while($recent->have_posts()) : $recent->the_post();?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> How can this be achieved on PageLines' templates? How can I have on the same page — but in different "blocs" — my posts from Category 1 and those from Category 2? Also — although only partially related — it seems that when a page is set as the "Posts page" in the "Reading" settings, the Blog template take precedence over any other template chosen in the "Edit Page". For example, if my page "Blog" uses "Template 1", where a QuickSlider is set to appear above the Content in the active sections, theQuickSlider is not displayed and instead appears the Callout section added to the Blog page template.
×