Home / Forums / DynamiX Support / Adding comments to portfolio posts

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Olivier Durand
    Participant

    Hi there,

    I was wondering if there is an easy way of enabling comments of portfolio items. And how can I order the portfolio “grid gallery” from newest (top) to oldest (bottom)

    Let me know, any help would be greatly appreciated! Thanks.


    Tom ( Support)
    Keymaster

    Hi Olivier,

    As standard Portfolio post types do not support comments but here is the code to add comments in.

    This option will also be included in the next version.

    Edit DynamiX/lib/adm/inc/register-post-types.php

    replace:
    
    'supports' => array('title', 'editor', 'thumbnail', 'page-attributes', 'excerpt' )
    
    with:
    
    'supports' => array('title', 'editor', 'thumbnail', 'page-attributes', 'excerpt', 'comments' )
    
    

    Currently you cannot sort Portfolio categories but you can trick it into sorting them. Edit your grid gallery, choose Portfolio Categories > Switch to Post Categories > Sort by date etc > Switch back to Portfolio Categories, finish and save the gallery. It should then sort by date etc. To alter it, switch to Classic Editor to manually change things.

    Hope this helps.

    Kind regards,
    Tom

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.