Support

Account

Home Forums Pre-purchase Questions Using slug to fetch values for page content

Unread

Using slug to fetch values for page content

  • Iā€™d like to use a single layout for multiple pages that is roughly 90% identical text and styling but calls different unique page content (meta titles, h1 ā€“ h6, keywords) depending on the slug in the URL.

    The unique text is embedded into the page via placeholders.

    So for example if the slug was

    /simon

    the page would fetch some *values* from a table for Simon, say his name and what he likes for breakfast. It might display.

    <h1>Hello *Simon*</h1>
    I see you like *pineapple* for breakfast.

    Could I build something like this that is sanitised and secure in ACF (incl extensions)?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.