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

    Hi, I’m trying to add an item to fill the space below the slideshow on single portfolio items.

    I added a custom field to the portfolio in admin and used:

    get_post_meta($post->ID, ‘key’, true);

    in loop-portfolio-single.php which worked ok when you view portfolio entry through admin.

    However, how do I get a similar thing to work in the ajax version?

    I tried adding the code to helper-templates.php, but the get_post_meta line doesn’t work, what is the correct call/id for this?

    Also there are threads saying instructions to wrap text around the single portfolio image exist but I can’t find them?

    Thanks.

    #83658

    Hey,

    Instead of:

    get_post_meta($post->ID, 'key', true);

    Try to use:

    get_post_meta($id, 'key', true);

    This code will only work in the avia_check_ajax_request() function which can be found in helper-templates.php

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

The topic ‘Single portfolio – Add text/image below slideshow?’ is closed to new replies.