• Hi There.

    I am having an issue viewing the custom posts.
    I have set my permanlink by default for wordpress as a custom structure: %postname%/

    And this somehow seems to be conflicting with the custom post types.

    I.e. One of my custom post types is named “Phones”.

    So this doesn’t work: http://www.domain.com/phones/htc-desire-hd/ (which is the default wordpress gives under my custom permalink structure)
    While this does work: http://www.domain.com/?phones=htc-desire-hd/ (which is what I get if I set the permalinks to the default option).

    The permalinks work perfectly for normal posts.
    Is there anything I can do or change to get the links working without changing my permalinks back to the default, as they are currently good for SEO and the default makes them show up as numbers, not names.

    Also, on my main page, I have loops that show the excerpts, images and names of articles based on categories … but when I use categories for the custom post types, they don’t show up … any ideas on what I need to do?
    My current code looks like this:

    <?php query_posts(array('cat'=>'143,146,145,144,154','showposts'=>2,'post__not_in'=>$do_not_duplicate)); ?>
                    <?php //---------------------------------------------------------------------// ?>
                    <?php if (have_posts()) : ?>
                    <?php while (have_posts()) : the_post(); ?>
    
                    <div id="front-small-image"><a href="<?php the_permalink() ?>" rel="bookmark"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(75,75), array("class" => "featured")); } ?></a></div>
    
                    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    
                    <?php the_excerpt('');?>
    
                    <?php endwhile; else : ?>
                    <?php endif; ?>

    Regards

    Itai

Viewing 1 replies (of 1 total)
  • Thread Starter eitai2001

    (@eitai2001)

    Ok so I managed to get the posts working, but the next issue I’m having is to do with the custom categories.
    At first I thought my code was wrong, but now that I look further … the excerpt which says which category the custom post is in shows the category as blank. Also, my Analytics Module can’t pick up the category for the custom post types. In fact, nothing can pick up the category except for the default nav menu which when you click the custom post type’s category, works fine.

    Any idea why this could be happening?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Easy Post Types] Can't view custom posts after publishing’ is closed to new replies.