Support

Account

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

Helping

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.