Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,
    Same problem, the image is displayed but not the description. Please help us to solve this problem.

    Thread Starter lanhub

    (@lanhub)

    Decided to not use this plugin and I changed to a different theme that has one built-in.

    hello Ianhub,
    I am solve my problem by modifying the plugin file portfolio-showcase.php In that file you find
    <div id=”portfolio-modal” …..> in that div you write the code what you want. Suppose if i want to display post content with my image then i will write code as below : `

    <div id="portfolio-modal" >
    
    <?php ps_post_thumb(array(700,500), true, array('class'=>'img-rounded ml15'));?>
                <div class="media-body">
                    <h3><?php the_title(); ?></h3>
    
                    <?php  	echo   port_post_excerpt(); ?>
    </div>

    i have add the custom function port_post_excerpt(); in same file which show the content of post as a image description.

    function port_post_excerpt(){
        global $post;
    	$content = $post->post_content;
    	echo $content;
    }

    Result shows the image with its description

    Thread Starter lanhub

    (@lanhub)

    Thanks for the code! If my client wanted to retain me as a site manager, I’d edit the code, but since I’m handing it over to them (they aren’t tech savvy), I’m hesitant on editing any of the php files since they’ll be overwritten with an update.

    Still..thanks for posting a solution! Glad to know that it’s just not me ??

    Supriya, could I ask you where exactly your code must be put in the file portfolio-showcase.php? Thank you very much!

    Hello dzweb84,
    Above code write in portfolio-showcase.php In that file you find
    <div id=”portfolio-modal” …..> in that div you write the code what you want.

    Thread Starter lanhub

    (@lanhub)

    @dzweb84: keep in mind that whatever mods you make to the plugin code, you’ll probably have to re-enter it when the plugin gets updated.

    Supriya_Kadam you saved my life. I was really frustrated until I found your code. Works like a charm. Is there any way to center the featured image? ??

    Hello Mon,
    I am happy for you. By using css you make featured image center. add the margin:0px auto; to the feature image class. Hopefully it works.

    Thanks a lot, Supriya. I was successful in centering image but the plugin made my category pages crash. I tried fixing a lot of things and refreshing permalinks and htaccess but nothing works. So I gave up on this one and installed another plug in that also works on custom post type but it’s working fine. I really liked the UI of this one though :/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Description not showing’ is closed to new replies.