WordPress.org

Forums

WP Easy Post Types
Easy Post Types & Permalinks (39 posts)

  1. Maria Korolov
    Member
    Posted 5 years ago #

    When I check "Use pretty URLs" (under "Edit Fields" in the "Easy Post Types" menu), the links to view the posts stop working.

    Otherwise, great plugin. Thanks!

    -- Maria

    http://wordpress.org/extend/plugins/easy-post-types/

  2. Maria Korolov
    Member
    Posted 5 years ago #

    Oh, and a couple of questions:

    Is there any way to specify a particular template to use to display custom posts?

    And what is the PHP code to show all the posts of a particular post type?

    I.e., I'd like to have a Custom Posts template just like I currently have a Category template.

    Thanks!

    -- Maria

  3. Maria Korolov
    Member
    Posted 5 years ago #

    I figured out the template issue for individual custom posts. Here is the answer in case anyone else needs it:

    Say you have a Custom Post Type called "Events."

    You need to create a new template file called single-events.php

    (I just duplicated single.php and changed its title and fiddled with the inside a bit to remove stuff I didn't want showing up for this custom type.)

    And if you want to add individual custom fields to the inside of the template, here's the PHP code:

    <?php echo get_post_meta($post->ID, 'field-name',true) ?>

    You would replace 'field-name' with the name of your field -- in the case of the Events post type, for example, that would be 'location', like this:

    <?php echo get_post_meta($post->ID, 'location',true) ?>

    -- Maria

  4. Maria Korolov
    Member
    Posted 5 years ago #

    And here's how to do the query to get just particular custom posts:

    <?php query_posts( array( 'post_type' => 'location' ) ); ?>

    And if you want to do multiples types in the list:

    <?php query_posts( array( 'post_type' => array('page', 'location') ) ); ?>

  5. imgr8
    Member
    Posted 5 years ago #

    Thanks for your notes, helped me a lot!! Do you know how to make a certain number of posts appear on one page and the other on the next?

    I tried
    $wp_query = new WP_Query("post_type=films&post_status=publish&post_per_page=5");
    in a while loop but it doesn't create any pages, I see all my posts on one page only. Any ideas?

  6. Maria Korolov
    Member
    Posted 5 years ago #

    If you go to your wp-admin page, click on "Settings" and click "Reading" you can set how many posts you want to come up per page.

    Do you do want to create a custom archive page with a certain number of posts?

    Then you need to add the following at the bottom:

    <?php next_posts_link('&laquo; Older Entries') ?>
    <?php previous_posts_link('Newer Entries &raquo;') ?>

    -- Maria

  7. imgr8
    Member
    Posted 5 years ago #

    Oh I know that, and it seems to be working for normal posts, but with the custom post types created with this plugin, the pages are not getting created. Thanks anyways, will check the admin section again =)

  8. Mizwo Mizwo
    Member
    Posted 5 years ago #

    @Maria, I had the same problem with the "pretty URLs", but solve it by putting only /%postname%/ (without %month% and so on) as Custom Structure within the Permalink Settings.

  9. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Thanks for the information. We will add some of this information to our documentation and will have that available in a future release. Thanks for using Easy Post Types!

  10. hoss9009
    Member
    Posted 5 years ago #

    Hey Maria,
    I created a single-post.php for my ECPT posts and I'm still getting 404's.
    How do I point a single post from a page of custom posts to a "single" post page?

    Thanks.

  11. Maria Korolov
    Member
    Posted 5 years ago #

    I think you should call your custom post type something other than "post" since the "Post" type is already taken. Just a guess.

    -- Maria

  12. hoss9009
    Member
    Posted 5 years ago #

    sorry... it is... it's actually single-webinteractive.php

  13. hoss9009
    Member
    Posted 5 years ago #

    could you give an example loop?

  14. @JoshuaGuffey
    Member
    Posted 5 years ago #

    I installed this plugin into a WordPress installation and it fracked up the front page by causing it to redirect to a long URL at same domain. I'm not sure what method is causing the redirect so I can't disable it.

    The site is clunkerjunker.com, when u visit u will see where it redirects.

    I don't have the backend coder know-how to comprehend how a WP plugin may have redirected my homepage elsewhere but it sure as hell did. Any clues as to how to fix it?

    Thanks so much!

    -@JoshuaGuffey

  15. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Hi Joshua - we will take a look at this as well. We're going to have a new release here in the next couple of days that should resolve most if not all issues found in the forums. Thanks.

  16. andij
    Member
    Posted 5 years ago #

    Thanks very much for providing this fantastic plugin for creating Custom Posts. I tried a few others and this one was most stable.

    The one issue that I've found:

    When choosing 'Use pretty URLs', the url changes to a pretty url, but I receive a 404 on the front end.

    I look forward to your next release.

    Cheers.

  17. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Thanks chertz,

    Any thoughts about how to correct the problem at this stage?
    Thanks very much!

    -@JoshuaGuffey

    PS. I've disabled and deleted the plugin to see if it would correct the issue yet it still persists. :-(

  18. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Hi Joshua,

    Is this the page you are being redirected to: http://clunkerjunker.com/myclunker/95-honda-civic/ ?

    We aren't doing anything with redirection in our plugin. Did you by any chance install any other plugins close to the same time as Easy Post Types that could have impacted the site? Can you double check any .htaccess files you have to make sure that the forward isn't happening at that level. Can you send me a list of plugins you are using so that we can install them and see if we can duplicate the issue?

    Thanks.

  19. @JoshuaGuffey
    Member
    Posted 5 years ago #

    That's correct, that's the page I'm being directed to.

    Active local plugins:
    Akismet
    BuddyPress Template Pack
    Limit Blogs per User
    Page Links To
    Redirection

    Active network plugins: (multisite is enabled)
    BuddyPress
    BuddyPress Private Messages for Friends Only
    Google Analyticator
    WordPress Database Backup

    Inactive plugins:
    Hello Dolly
    Typekit Fonts for WordPress
    WordPress Importer

    Note that I'm running the most recent stable version of WordPress with multisite enabled following the instructions at this article: http://www.makeuseof.com/tag/turn-wordpress-blog-blog-network-wordpress-30/

    Everything was working perfectly. The issue occurred in response to something your plugin did. I had created a new post type (slug="myclunker") and a new post of that type (slug="95-honda-civic"). Note that this is the same as the url we are being sent to when visiting the homepage. It was clearly some issue with the Easy Post Types plugin.

    I think that just prior to the issue occurring I deleted the post type while the post "95-honda-civic" still existed in that 'post type'. In other words, I think that it was an error that resulted from data existing in association with a post type that was deleted. If that makes sense.

    --
    On a sidenote, I just restored the SQL database to prior to any changes to the site (including the install of your plugin) and the problem was still present. I've now re-imported my most recent SQL database since it's content is the newest. And running hourly SQL dumps just in case.

    Also, I just tried deactivating all plugins and was still getting sent to that long url.

  20. @JoshuaGuffey
    Member
    Posted 5 years ago #

    I also looked into these settings: wp-admin/ms-sites.php?action=editblog&id=1 and found that all references are to the correct http://clunkerjunker.com (no trailing url)

  21. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Additionally, I've checked that there isn't a redirect present in either my hosting setup (through cPanel) or through the Redirection plugin that I have enabled. Note that I disabled all plugins and still had the issue.

    I also tried reseting my permalink structure to no avail.

    Thanks for your help! Anxious to resolve this issue.

  22. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Currently downloading an entire backup of the files on this site to then run a reinstall of WordPress 3 via the /wp-admin/update-core.php options page. Hope this doesn't screw me worse. #backupsaregood

  23. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Man... you gotta be kidding me. I reinstalled WordPress as mentioned above and still have this issue!

    #frustrated

    Thanks for your help. Looking forward to being back to normal again. :-/

  24. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Hi Josh - thanks for the details, and sorry that you are frustrated. Hopefully we can help squash this issue. What are your options in /wp-admin/options-reading.php? Any chance your last post is set to be displayed as your default home page? How about the redirect plugin - are there any options in that that somehow are forcing you to this page?

    We're going to install each plugin you've outlined above under a multisite configuration and will let you know the outcome.

  25. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Thank you for your help. I honestly didn't expect to receive much help based on the fact that this is a free plugin and also based on the verbiage at this site. It's a pretty significant issue though so I really appreciate the help.

    Is there an email address I can send screenshots to? I believe you've got mine if you'd rather not publicize it. Feel free to shoot me an email and I'll send whatever info you want.

    If this gets resolved and the plugin works as intended I'm going shout all over the net about the great support and the plugin. I appreciate nothing more than good support. Thank you!

    -J

  26. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Josh, thanks for your call earlier and I am sorry that we don't have a way to resolve the problems you are running into. We haven't been able to recreate the problem that you are encountering and therefore don't have any insight into how to implement a fix. We will be releasing a new version tomorrow that addresses a number of reported bugs that we have been able to recreate and resolve. If you are interested in using the updated version of the plugin, I recommend creating a copy of your site and installing it on this copy as a test to ensure that it works properly with your specific configuration. Best of luck!

  27. @JoshuaGuffey
    Member
    Posted 5 years ago #

    Thank you.

  28. chertz
    Member
    Plugin Author

    Posted 5 years ago #

    Hi All - just to let you know, we've released an updated plugin with a number of updates included in it. Version 1.0.1 is now available as a download. Thanks.

  29. lac582
    Member
    Posted 5 years ago #

    I installed the new version, but I'm afraid I am still seeing the 404 problem. I deleted all my post types and started over, but it's still not fixed :/

  30. baga
    Member
    Posted 5 years ago #

    Same problem with the 404 error. What about compatibility with qTranslate?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Easy Post Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic