Before you ask please READ THIS

Comments in single album

edited July 2015 in Photon Posts: 6
Bonjour
comment activer la discution sur les albums ?
merci par avance
Post edited by Air on

Comments

  • AirAir
    Posts: 10,970
    Hello:-)

    English please!
    If you ask about comments in album, then there is no option(and no place) for it.

    With kind regards.
  • Posts: 6
    StepfaneG said: onjour
    comment activer la discution sur les albums ?
    merci par avance
    StepfaneG said: Bonjour
    comment activer la discution sur les albums ?
    merci par avance
  • Posts: 6
    Hello how to activate the discution on albums?
    Thank you in advance
  • AirAir
    Posts: 10,970
    Hello :-)

    as I said above, there is no option for enabling comments(discussion) in albums. You will have to modify few theme files if you wish to get it.
    With kind regards.
  • Posts: 6

    can you put me on the track?
    tank you
  • AirAir
    Posts: 10,970
    tank me? Please don't! :-)

    Album post type don't have enabled comments, and so it doesn't have callas for comments, or even space where they should be displayed.

    You will need to modify plugin a13_photon_cpt.

    wp-content/plugins/a13_photon_cpt/a13_photon_cpt.php line 39 change this
    
    $supports = array( 'title','thumbnail','editor' );
    		if(isset($apollo13)) {
    			if ( $a13_apollo13->get_option( 'album', 'comments' ) == 'on' ) {
    				array_push( $supports, 'comments' );
    			}
    		}
    to
    
    $supports = array( 'title','thumbnail','editor', 'comments' );
    
    Next go photon-a13/single-album.php line ~61 and after this code
    
    					                <div class="real-content">
    					                    <?php the_content(); ?>
    					                    <div class="clear"></div>
    
    add this <?php comments_template( '', true ); ?>

    This should get you started.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion