[Support request] Display custom field content in Query Loop

Home Forums Support [Support request] Display custom field content in Query Loop

Home Forums Support Display custom field content in Query Loop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2259784
    Anastasia

    Greetings everyone.
    I create a custom post type for team members through functions.php I add a custom field using the default custom fields of wordpress and then I use Elements to make a layout for the custom posts’ single post layout so I can display the custom field info under post Title. Till here everything works like a charm.

    I create into another page a section where I add a query loop in order to display posts of that custom post type. The problem is that I can’t echo the custom field . I get only the post title and featured image.

    So I’d like to ask if there is any kind of method that I could display that piece of information as well. Notice though that I don’t use ACF. If generatepress can’t dive so deep, is it possible to create any kind of shortcode containing the information of that custom field I need and use it as a shortcode inside my loop ?

    #2259805
    Fernando
    Customer Support

    Hi Anastasia,

    It this field of information in form of a text? If so, you can use a GB Headline Block as well.

    You’ll need to enable Dynamic Data in its Block settings, and set the content source to post meta. Then, set the post meta field to the one you set in ACF.

    Example: https://share.getcloudapp.com/nOuXDyRb

    Hope this helps!

    #2259962
    Anastasia

    Greetings Fernando,
    There is no Dynamic data panel available for a reason. I have the latest version of the theme and generate blocks basic and pro version

    #2259978
    David
    Staff
    Customer Support

    Hi there,

    the Dynamic Data options and GB Query Loop are available in GB 1.5 which is in release candidate:

    https://generateblocks.com/generateblocks-1-5-dynamic-data-query-loops-image-blocks/

    Later today we will be pushing the button to do the final release.

    If you want to use GB 1.5 RC version with GB Pro then note you would need to install the GB Pro 1.2 Alpha too:

    https://generateblocks.com/generateblocks-pro-1-2-0/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.