WordPress.org

Forums

Decode
[resolved] How to use custom post type (8 posts)

  1. Juergen Schulze
    Member
    Posted 1 year ago #

    Hello,
    I have a BIG problem.
    I created a custom post type with the help of Custom Post Type UI.
    Browsing categories with my old theme works fine. But now with your theme archive.php gives me an empty result.
    The single post type pages show up so far. It's just that I can't search or browse them.
    In my old template I used
    $query_string.="&post_type="myownposttype"
    What do I do now?
    Juergen

  2. Juergen Schulze
    Member
    Posted 1 year ago #

    ok
    I found the following to be helpful
    Make Archives.php Include Custom Post Types
    But I think your very VERY good them should be able to customize this as well.
    Juergen

  3. Scott Smith
    Member
    Theme Author

    Posted 1 year ago #

    Thanks for the suggestion. Is there any reason why this shouldn't be the default behavior? Wondering if this should be standard.

  4. Scott Smith
    Member
    Theme Author

    Posted 1 year ago #

    OK, so I realized the archive.php page is always empty because it doesn't function as a page template. If you want, try using the Explore page for a more innovative and fun layout.

  5. Juergen Schulze
    Member
    Posted 1 year ago #

    Ok, I will give it a try.
    It's just that I (will) use your theme in parallel to a "normal" destop theme. Switching between mobile theme and desktop theme will be done automatically by an plugin.

  6. Scott Smith
    Member
    Theme Author

    Posted 1 year ago #

    That's tricky then because http://yourblog.com/explore will only map to the explore page in Decode, but if it works for you that's fine.

  7. Juergen Schulze
    Member
    Posted 1 year ago #

    I am using a derived child theme of your theme.
    I had to change some things, e.g. use my own logo font for header.
    Even after your theme update I only had to change two line inside "index.php" back to your new values

    <?php get_template_part( 'content', 'none' ); ?>

    and

    <?php decode_paging_nav(); ?>
  8. Scott Smith
    Member
    Theme Author

    Posted 1 year ago #

    I think this is to be expected. Is this an issue, you think?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic