• I have downloaded the popular nextgen gallery plugin and have tried to attach a gallery to a post and then display that gallery in the sidebar next to the post. I have the following code in the sidebar

    <?php
    $GalID = get_post_meta($post->ID, “Gallery”, true);
    $showgallery = “[gallery=$GalID]”;
    $showgallery = apply_filters(‘the_content’, $showgallery );
    echo $showgallery;
    ?>

    but I am unsure as to how to associate the gallery with the post..

    I am looking to try and achieve what this site has done:
    https://www.romeloft.com/

    an example url below:

    https://www.romeloft.com/284-scala-house-apartment/

  • The topic ‘trying to associate gallery with post and display in sidebar’ is closed to new replies.