Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter richleppard2

    (@richleppard2)

    Thanks (for the help and the plugin of course)

    Thread Starter richleppard2

    (@richleppard2)

    I use Advanced Custom Fields plugin. I create a custom field for them and then put the php get_field into the template. I find it works a charm but Ive never had to include such a call into another piece of php.

    Thread Starter richleppard2

    (@richleppard2)

    In fairness the external php file is just to keep tidy. However the content I want expanded needs to be a php handle so that I can link it to the backend of wordpress for the client to update. I’ll try stack overflow. It’s a bit of a unique problem because the shortcode is specific to WordPress and the plugin and so I’m not sure how it effects the syntax of php.

    Thanks for your help.

    Thread Starter richleppard2

    (@richleppard2)

    Reposting as that may not be viewable.

    In literal terms: where the above snippet says ‘html content’ I would want the equivalent of <?php include(includes/list.php);?> The file this refers to would be an unordered list in html but each would contain <?php get_field('name');?>

    My problem is I have no experience of inserting php within php. In the above example the expand tags are opened and closed but the space between them only seems to allow html.

    Thanks for your response.

    Thread Starter richleppard2

    (@richleppard2)

    In literal terms: where the above snippet says ‘html content’ I would want the equivalent of <?php include(includes/list.php);?>. The file this refers to would be an unordered list in html but each

    • tag would contain <?php get_field(‘name’);?>.
    • My problem is I have no experience of inserting php within php. In the above example the expand tags are opened and closed but the space between them only seems to allow html.

      Thanks for your response.

    Did you ever resolve this? I cannot get magic line to work at all. CSS is fine but the js doesn’t seem to do anything and the magic line itself doesn’t appear.

Viewing 6 replies - 1 through 6 (of 6 total)