WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Archive not displaying any posts (2 posts)

  1. RachelGoldstein71
    Member
    Posted 7 months ago #

    I have a custom post type called Projects, and an archive page, archive-projects.php. At one point, it was working, displaying the thumbnail and permalink as programmed on the template.

    get_header(); $object = get_queried_object(); $taxonomy = empty( $object->taxonomy ) ? false : get_taxonomy( $object->taxonomy ); ?>
    
    <main role="main">
    
    	<?php if ( have_posts() ) : ?>
    <div style="float:left; width:300px;">
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('medium'); ?></a>
    		<a href="<?php the_permalink(); ?>"<?php the_excerpt(); ?> </a>
    		</div>
    	<?php endif; ?>
    </main>

    I have just updated the plugin, and now the archive page doesn't work. I don't know whether or not it was due to the update. I have two projects, but they don't display on the archive page

    I have also tried
    <?php get_header(); ?> instead of the first line in the above code.

    http://davidneffarchitect.com/projects/

    http://wordpress.org/plugins/types/

  2. RachelGoldstein71
    Member
    Posted 7 months ago #

    Oops, nevermind, it's working.

Reply

You must log in to post.

About this Plugin

About this Topic