MarkPGray
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Returning field slugWithin the flexible content field I have a layout field (called Section) which has two sub fields; a text field (Section Header) and a WYSIWYG field (section Content). This Section field can be repeated any number of times when adding content to the backend. I need to dynamically generate an id for the Section Header field so the the in-page navigation works.
Forum: Plugins
In reply to: [Custom Content Shortcode] Returning field slugHmmm, I realise my question was not very clear, sorry about that.
I have a ‘text’ field and want retrieve its name (slug).
E.g. If field name (slug) is “mpg_section_title”, I would like to use this value.
Hope this is clearer?
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Image field not showing when in related tagHi, just updated to 1.1.8 and all is working. So thanks for that π
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Image field not showing when in related tagHi, I’ll keep looking in to it and let you know how I get on. Its not vital to the project as I can use the featured image field instead.
Just to clarify though, I am using ACF 5 and the image return options in the backend image field form are “Image Array”, “Image URL” and “Image ID”. I assumed that the “Image Array” option is equivalent to “image object”.
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Image field not showing when in related tagHi, still can’t get it to work. In ACF I select the image to be returned as “Image Array” though I have tried the other two options of url and ID as well. How do I use the in=”object”? I tried [[field image=”mpg_profile_image” in=”object”] but no luck.
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Image field not showing when in related tagJust tried this [content image=”mpg_profile_image”] and it shows the images but then the other fields don’t show
[related field="mpg_facilitators"] <h3>[field="title"]</h3> [content image="mpg_profile_image"] <p>[field="mpg_about_person"]</p> [/related]Forum: Plugins
In reply to: [Custom Content Shortcode] Showing fields from relationship field in ACFWorks perfectly π
Forum: Plugins
In reply to: [DirectEdit] Additional tags ie h1 and blockquoteHi Carlo, you said in the original response …
you will find a folder /direct-edit in your theme directory
I simply did not read this properly and was indeed changing the plugin files and not the files in the theme directory. It is all working perfectly now, sorry for wasting your time.
Cheers, mark
Forum: Plugins
In reply to: [DirectEdit] Additional tags ie h1 and blockquoteOK, quick update. Sorry should have tried this last night but was a bit tired. Seems the issue is a theme conflict, when I change to Twenty Thirteen all is working well. The theme I am using is themecraft’s _tk wordpress bootstrap starter theme which is based on β_sβ by Automattic
Cheers, Mark
Forum: Plugins
In reply to: [DirectEdit] Additional tags ie h1 and blockquoteHi Carlo, thanks for the quick response. I’ve tried your suggestion but the h1 and blockquote are still not showing on the frontend. I looked in the .json file and can’t see there is anything I need to update since the h1 and blockquote are already entered.
"rich": { "type": "text", "format": "block", "buttons": { "format": ["b", "i"], "block": ["p", "h1", "h2", "h3", "h4", "blockquote"], "align": ["left", "center", "right"], "list": ["ul", "ol"], "insert": ["link", "image", "file", "video"] },What am I missing?
I love that I can customise the edit toolbar, in fact I may well keep your p-lead etc as I use bootstrap for most of my work now. Being able to add classes is brilliant π
Forum: Plugins
In reply to: [Twitter Bootstrap for WordPress] Diable some jQuery librariesHmmm, sorry didn’t check my spelling or the title, it should say Disable Grid Css. Sorry about that.