Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #361337

    Hi, thanks for making this theme. I’m trying to insert some data from a custom post type created by GeoDirectory into the theme’s masonry_entries.php

    The GeoD devs suggested:
    $post_details = geodir_get_post_info($post_id);

    I know it’s somewhere near line 598 but where/how to wire it in so that it displays as $items?

    Appreciate the attention!

    #361680

    Hey jimmymoto!

    Try this.

    $items .= 	geodir_get_post_info($entry['ID']);
    

    Best regards,
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
    #361906

    Thanks for the reply. Looks like we’re on the right track. When i put your suggestion on line 598 however, it removes the excerpt and displays just the number ‘0’ under the post title.

    Any clue why?

    #362387

    Hi!

    I would try adding it right above line 598.

    					}
    					$items .= 	geodir_get_post_info($entry['ID']);
    					$items .=	$text_after."</div></figcaption>";
    				}

    If it’s still not working then it would be best to contact the plugin authors for more information.

    Cheers!
    Elliott

    #362530

    Still trying to sort this. Found a similar inquiry but using
    $this->loop[$key]['address'] = geodir_get_post_info($id);
    and
    $items .= $address;
    isn’t catching.

    https://kriesi.at/support/topic/masonry_entries-php-get-custom-field-value-or-content/

    #363613

    Hey!

    It’s most likely not how the plugin function is meant to be used. I would try contacting the plugin author and check with him to see how best to use it.

    Cheers!
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.