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
- How Do I Protect My Premium WordPress App Theme from Copying?
- When to use _e and __ for the translation?
- Get entered value of customiser field for live preview
- With WordPress themes, where do I store the images and files relatively?
- How to Include SVG sprites icons into the body tag? [closed]
- Why doesn’t /2013/01/ properly return January’s archives in archive.php?
- Page is defaulting to archive page and not designated template
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Child Theme not loading parent CSS
- WordPress settings API error when checkbox unchecked
- How the WordPress sidebar works
- two tinyMCE editors in the same page
- Separated Comment from Post
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- Theme Customizer not loading
- WordPress Customizer Control with React
- File Security Check in wordpress in index.php of theme
- how to implement wp_is_mobile on themes?
- Second Custom Post Type Archive
- Is my approach to enqueue styles inefficient?
- Part of Menu Item Hidden on Header Menu
- How do the default themes reference style.css?
- Input ordering in wordpress theme customizer
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- Which file handles the block latest posts, I want to examine excerpt handling
- Menu item added in wp_nav_menu_items filter is never highlighted
- How do i make a custom section’s setting display the default value in Customizer?
- Warning: A non-numeric value encountered in theme functions.php
- How can I ping update-core.php with a script?
- Custom post type archive page blank
- “Add A Widget” button in the Customizer
- loading blank white screen of slide
- Set parent theme language with custom .mo files
- Change template if tag selected
- Use one template only for custom post type archives?
- Overide enqueue in non plugable function via child theme
- Which cache is kicking
- How do I merge 2 WordPress Themes?
- Customizer: get_preview_url() inside customize_save_after hook
- Is there a way to switch to another theme?
- Right procedure when you develop a WP Website for a client
- Different themes on one site
- // File Security Check from WooCommerce [duplicate]
- Allow different tags in widget titles
- Switch theme if ie compatibility/quirks mode?
- Pagination and multiple loops
- Does wordpress add their own classes into nav menus?
- Available widgets is not showing up?
- Getting white screen of death on category pages because of body_class() function
- WordPress link to another page in site does not render a
- Developing WordPress site behind a static site
- Problem with Displaying Custom Theme Page’s Content
- Code showing in wordpress post titles around website
- register_theme_directory() sees custom themes directory, but blank frontend
- HTML to → WP Conversion
- Add multiple sections, settings and controls at once to the Customizer
- Font not loading [closed]
- How to change parent permalink?
- how to call options on front end and add logo
- Jetpack Infinite Scroll Not Working
- Editable screenshot.png in a custom theme developed
- How to create multiple pages in a client theme?
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- get_theme_mod not pulling css colors into header using wp_head
- Duplicate WordPress site to subdirectory but use same db?
- Menu order of parent menu from perspective of child menu
- Conditional loop based on current page
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- custom theme’s search not working
- Permalinks problem with custom theme
- Purchased Theme to Custom Made Theme? [closed]
- How to make website with many template that active [closed]