WordPress.org

Ready to get started?Download WordPress

Forums

Custom post type (index) and popup comment (6 posts)

  1. alessandro63
    Member
    Posted 4 years ago #

    Created a custom post type, put comments on, and it works as a link (going to the single page).
    Add the popup script, and I end with a 404:
    ?comments_popup=# finds "regular" posts, while it seems it doesn't find the custom post types by post#

    This happens in a ?post_type=myposttype index

    Any suggestion?

    Many thanks
    Alessandro

  2. alessandro63
    Member
    Posted 4 years ago #

    Sorry, I try to reformulate in a simpler way:
    comments popup is not working from my custom post type index page (?post_type=myposttype)

    Anyone experiencing the same? My custom post type has commenting enabled and it stops working (404) only with the use of comments_popup_script (default link to the single page is ok)

    Thanks
    Alessandro

    p.s.
    "comments_popup" finds "regular" posts by ID#, while it doesn't find custom posts as if the ID# was non-existent.

  3. alessandro63
    Member
    Posted 4 years ago #

    Any news about this one?

  4. Od3n
    Member
    Posted 4 years ago #

    may be you could share some code here.

  5. alessandro63
    Member
    Posted 4 years ago #

    It's a plain 3.0 install, with added post type as per instructions, and added script to have popup comments as per instructions.
    If I navigate the post type "index" (?post_type=myposttype), comments popup gives a 404.
    What I'm looking for is a confirmation it doesn't work this way, or someone just saying "it works".

    Same result navigating "?comments_popup=#", where it doesn't work if the searched post# belongs to a post type different from a default article (post).

    Thanks
    Alessandro

  6. cmehl
    Member
    Posted 3 years ago #

    I have the same issue Alessandro. My commments_popup_link returns a 404 page when I use it on the archive page of a custom post type, but works fine for posts and pages.

    Any ideas? anyone anyone bueller?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.