Forums

post_content not working for custom post (1 post)

  1. TomCraig
    Member
    Posted 1 year ago #

    Hi guys

    I'm trying to display some columns from a custom post...

    These two work fine, giving me the title and url of the custom post:

    $title_array[$counter] = $single_result->post_title;
    $url_array[$counter] = get_permalink($single_result->ID);

    However, the below returns nothing (there is definitely content in the post):

    $system_size_array[$counter] = $single_result->post_content

    Any ideas how I can get this to work?

Topic Closed

This topic has been closed to new replies.

About this Topic