mdjbrighton
Forum Replies Created
-
Forum: Plugins
In reply to: [Theater for WordPress] Creating a php tempate for productionsI’m nearly there.
The code results in the custom field being surrounded by
<div class=”wp_theatre_prod_colours”>’
So I need to strip out the html.
I’ve found I can strip out the html by commenting out a couple of lines in wpt_productions.php around line 579
if ($args['html']) { $html = ''; //$html.= '<div class="'.self::post_type_name.'_'.$field.'">'; $html.= $this->apply_template_filters($this->{$field}, $args['filters']); //$html.= '</div>';However, I don’t really want to edit the plugin files.
Is there a better was of doing this?
Otherwise the plugin is doing everything I want it to.
Forum: Plugins
In reply to: [Theater for WordPress] Creating a php tempate for productionsGreat, thank you.
I will let you know how I get on.
Forum: Plugins
In reply to: [Theater for WordPress] Creating a php tempate for productionsThanks,
I’ve used this already, and it works really well.
I just wondered how I could add this directly to the template,
I am using ACF which works well mostly, but using shortcodes doesn’t allow me to add some of the ACF fields as classes, for example <h2 class=”{{colours}}”>. While I can output {{colours}} as a text field.
Many thanks
Forum: Plugins
In reply to: [Theater for WordPress] Creating a php tempate for productionsI want to create a page to show a filtered list of productions.