Site logo

[Support request] Is this a job for Elements?

Home Forums Support [Support request] Is this a job for Elements?

Home Forums Support Is this a job for Elements?

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

    Hi there,

    I am trying to get used to the good Gutenberg/GeneratePress workflow. I have a page where I want to present the employees. I have been thinking of a block/element-thing where I could just let the editor fill a few fields and then present the employee in a nice way. I, as the developer, want to have control over the HTML/layout and want to let the editor change texts about each employee without layout errors (blocks swapped, resized etc.). What is the good way of doing that?

    Using GeneratePress Pro with generateblock free and ACF free and would prefer to keep it like that.

    #2598529
    Leo
    Staff
    Customer Support

    Hi there,

    In general, you would only use Elements when:

    – Adding content to non-static pages such as the Posts page, Archives etc.

    – Adding content that you want to appear on multiple pages using hooks.

    Let me know if this helps 🙂

    #2598531
    webintas

    Hi Leo,

    That is nice rule of thumb – none of these will apply for this case.

    What would the right approach be then?

    #2598549
    Leo
    Staff
    Customer Support

    If this is just for a section in a static page then ACF with Query loop/dynamic data should work:
    https://docs.generateblocks.com/article/query-loop-overview/
    https://docs.generateblocks.com/article/dynamic-data-options-overview/

    #2604104
    webintas

    Hi Leo,
    Will that include creating a custom post type as well?

    / Peter?

    #2604761
    Fernando
    Customer Support

    Hello Peter,

    Yes, if you have a CPT for your “Employees”, it should be retrievable through a Query Loop. Just make sure that the CPT is set to “Show in REST API”.

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