Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Gardner

    (@jgardner03)

    The code should work. Make sure it’s formatted like so:

    post_type_supports( 'portfolio', 'comments' );
    Thread Starter Boat

    (@boatkung)

    Yes, I copy and paste that code into child theme’s function.php. but It doesn’t work. I have two blogs that use this plugin and all two blogs cannot open comment support. I don’t know why.

    Plugin Author John Gardner

    (@jgardner03)

    what does your shortcode look like? Are you linking to the page?

    [portfolio link="page"]

    Also check the actual portfolio item from the admin screen and check that comments aren’t disabled (I’ve seen it default to disabled on some themes when turned on for the first time)

    Thread Starter Boat

    (@boatkung)

    I use Twentytwelve for Parent my Child Theme and add this to pages to show Portfolio thumbnails

    [portfolio thumb="custom-size" title="below"]
    

    I setting link to page at Portfolio Setting but can’t find any option for enable Comments like default WordPress’s posts or pages. Also checked in Screen options in portfolio item or quick setting in portfolio lists ,have no any options about comments.

    Plugin Author John Gardner

    (@jgardner03)

    Ah, ok… If you want to link to a portfolio page (so people can leave comments) you have to add the link parameter to the shortcode

    [portfolio thumb="custom-size" title="below" link="page"]
    Thread Starter Boat

    (@boatkung)

    All right, I knew that but I don’t want to force every links to single-page. So I didn’t add [..link=”page”] into shortcode.

    Oh, I have an idea. I build new wordpress blog for test and setting some required likes my blog. If you have a free time. You could check my code ,please.

    New WordPress
    Log in
    user: admin
    pass: pass

    Plugin Author John Gardner

    (@jgardner03)

    On that site’s child theme functions.php I replaced the post_type_supports() function with a filter my plugin provides to do the same thing. Once I did that a new box appeared on the portfolio item’s screen that allowed me to turn on comments. Perhaps post_type_supports() doesn’t fire correctly from a theme’s functions file.

    If you don’t want to have comments for every portfolio item, you can remove the link param from the shortcode and just configure the individual portfolio items you want to link to a page.

    Thread Starter Boat

    (@boatkung)

    OH, Thank you very much!

    It’s work now. I find solution for a week with this ploblem. (I think I do something mistake.) and again Thank you for very good plugin and very good supports. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I can't open comments in single-portfolio’ is closed to new replies.