og filter

This topic contains 2 replies, has 2 voices, and was last updated by  Stiofan O’Connor 6 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #416961

    kevinbill
    Buyer
    Post count: 76

    I am trying to create a filter and not sure if it is close at all to being correct.
    Could you take a look and let me know thanks.

    #416962

    kevinbill
    Buyer
    Post count: 76
    This reply has been marked as private.
    #417026

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i have not tested and am not sure if you are using the right hooks but the GD bit is wrong, it should be

    $og_image = geodir_get_images( $post->ID, 'thumbnail' );

    The $og_image will be an array for images, i’m not sure how the filter accepts them but to echo them for example you would do

    
    
    if(!empty($og_image)){
        foreach($og_image as $img){
            echo $img;
        }
    }

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket