• Resolved mfgr

    (@mfgr)


    Hi,
    I’ve just started working with WordPress two months ago and my first website is coming along nicely.
    However, there is one problem that I can’t seem to fix.

    I have a relatively large volume of so-called “custom posts”, which I would like to list on a “page”, with some of the custom fields shown next to the title of the custom post.

    Let’s say the custom post type is called ‘concert’ and I’d like to show the custom fields ‘date’ and ‘location’ along with the title of each custom post.

    I do have ACF and ACF Views (unpaid versions), but oddly there doesn’t seem to be a way to do what I want, or I’m just missing something.

    Your help would be highly appreciated by me! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • ACF Support

    (@acfsupport)

    Hi @mfgr

    ACF Support Team here.

    There are many ways to query posts in WordPress, the common being the?get_posts?function or?WP_Query?object.

    You can use these methods to query your custom posts on the page and for each post load the corresponding custom field values using ACF’s get_field() function.

    I hope this helps.

    Thread Starter mfgr

    (@mfgr)

    I am surprised that there is no UI for a case like this.
    The problem is, I guess, that I can’t write php myself so I would need an example to get forward. Would that be possible, please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating a page which lists custom posts with custom fields’ is closed to new replies.