richleppard2
Forum Replies Created
-
Forum: Plugins
In reply to: [Collapse-O-Matic] Using in templateThanks (for the help and the plugin of course)
Forum: Plugins
In reply to: [Collapse-O-Matic] Using in templateI 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.
Forum: Plugins
In reply to: [Collapse-O-Matic] Using in templateIn 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.
Forum: Plugins
In reply to: [Collapse-O-Matic] Using in templateReposting 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.
Forum: Plugins
In reply to: [Collapse-O-Matic] Using in templateIn 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.
Forum: Plugins
In reply to: Jquery navbar. Where to put js files?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.