When using custom post types I got around this problem by using the following code. Of course you will need to put in the HTML for how you want it to display on your site.
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(''); // Enter you query here
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
// Post body
<?php endwhile; ?>
<?php previous_posts_link('Previous page'); ?>
<?php next_posts_link('Next page'); ?>
<?php $wp_query = null; $wp_query = $temp;?>
Related Posts:
- Custom Post Type Query issue
- How to show next Post Thumbnail image in WordPress using current post id
- Custom post type archive sorted and grouped by date in post meta field
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- Archive page doesn’t work
- How do I build a post_thumbnail based archive? [closed]
- How to override p2 breathe theme plugin in content template file?
- Getting author URL outside the loop
- Create a category archive page in TwentyTen Child Theme
- how to make wordpress change the title and keep page name?
- How do I display a greyed out next_post_link when there is no next post
- Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?
- Designing a custom archive.php inspired by the Autofocus theme
- Archives and Categories in Custom Menu
- Theme author.php transfer
- Custom Post Type archive page listing a 404 or single post
- Second page of archive is empty
- How do I use the add_query_arg function in a template tag like previous_post_link?
- Adding a space between next and previous post links
- Next post in category
- Next/Previous post navigation
- Tags interfering with next_post_link();
- pagination/prev and next page links not showing
- Next Post Link not working with parameters to restrict to same term
- Can’t attach Javascript to theme
- add_action not working in header?
- Menu item not created on theme activation
- Passing a location-dependent array via wp_localize_script within a shortcode
- Moving Posts and Users Only to New Site
- Add social media icon in header area
- How to create multiple sidebar areas with a forloop and register_sidebars?
- Custom Infinite-post-scrolling in a custom theme:
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Ubuntu 13.04 create new wordpress theme from scratch problems
- enqueue script if page is not equal to
- 2 loops in archive.php (one for each category)
- the_post_thumbnail fetches wrong image
- woocommerce breadcrump missing shop link [closed]
- Deleting all Options on theme switch
- Simple loop with shortcode rendering problem
- Unable to convert all css and js features to WP theme
- Theme automatically inserting “more” tag on every post
- How get the 10 most viewed pages (not post)
- Theme Option’s Save Button is not working
- WordPress widgets manager option for emulating theme layout
- Not the typical order by posts by date question
- What is the proper way to manage versions (with svn) of a theme we create?
- apply_filters to featured image
- Include title and content of one page in another page
- Set start page depending on screen width [closed]
- How can I change the title of the Home link in the navigation bar?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- How do I move menu to the bottom in Custom Community theme?
- Custom widgets in theme option page
- How does offset works on pagination? (get_results)
- adding navigation to genesis themes
- Mamp pro permalink issues. Pages keep reverting to index.php
- Adding custom widgets to theme sidebar on activation
- Plugin or script to apply updated media settings to all featured images
- Header links also appearing in the footer
- wp_deregister_script was called incorrectly
- Extending arrays in parent theme without completely overriding the files
- How to close open divs in post loop
- The normal loop with different styles doesn’t work in search.php
- Checking conditionals
- Pass custom css class to add_menu_page
- How to throw the “We need ftp info” at a user
- Create archives by author role
- Custom image size doesn’t work
- Retina ready for uploaded images which are cropped
- add_theme_page is not working
- Infinite scroll loads new posts several times
- Theme options not displaying correctly after theme update
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- Display Today’s date outside the loop?
- How to check if a certain theme option settings has already been set
- The content not wrapped in paragraph tags with get_page_by_title()
- How to using custom DB tables
- Pagination issue with Single.php
- Standard Way To Do Custom Work Within A Page?
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- issue displaying variations in custom template using WPeC 3.8.9.2
- Using wp_enqueue_script with social media buttons?
- Make theme editor to show all theme’s files
- 404 on child page template
- Want to include ad code after related post
- Problem using $var for shortcode attr value
- What are these variables and where are they documented?
- Confused on loading page content
- Displaying Tags for the Page I’m On?
- Retrive posts thumbnail in original size
- Alternating CSS classes for dynamic content [closed]
- Use external fonts in WordPress stylesheet
- Custom link color or stylesheets
- Conditional tags issue for multiple is_page() conditions in sidebar.php
- How to convert that page to a wordpress template? [closed]
- JQuery Equal Height in Rows Conflicts Only Works without Registering wp_footer();
- What causes a theme to be inefficient?
- wp_enqueue_script causes page to vanish
- URL conflict with a ‘Single Page Layout’