- This topic has 9 replies, 2 voices, and was last updated 4 years, 5 months ago by Tom.
May 5, 2017 at 3:34 am #314279waytogo
(First, I’ve been using GP theme and plugin for four months and love it.)
When I insert an image in a section, the image caption and media credit do not display. following is the html, which references Media Credit plugin:
[media-credit name="JHVEPhoto/iStockphoto" link="http://www.istockphoto.com/photo/mount-denali-with-usa-flag-gm486643262-73661881" nofollow=1 align="alignnone" width="788"]<img src="https://www.EXAMPLE.COM/wp-content/uploads/sites/5/2017/05/denali-us-flag-788x443.jpg" alt="" width="788" height="443" class="size-full wp-image-293" />[/media-credit]
I changed the URL for privacy. The site is not public yet. On regular pages on the same site, images display with caption and media credit. (The site is part of a multisite install, but I don’t think that matters here.)
From other forum posts, I see that WordPress and GP sections don’t always play perfectly together. If it were possible, fixed this problem and didn’t create others, I’d be willing to turn off the WYSIWYG editor tools for sections, and treat them like widgets. Thank you.GeneratePress 1.3.46GP Premium 1.2.96May 5, 2017 at 9:04 am #314405TomLead DeveloperLead Developer
Are you using the built in caption field in WordPress, or are you using a plugin?
If you’re using a plugin, can you link me to it?
Also, could you try the caption field as well? Might be one less plugin you have to rely on.May 5, 2017 at 9:19 am #314425waytogo
Using built-in caption field in WP. Yes, I agree, avoid unnecessary plugins.
For media credit, I’m using this plugin: https://wordpress.org/plugins/media-credit/May 5, 2017 at 11:51 am #314499TomLead DeveloperLead Developer
So you’re using both the captions and the media credit plugin? What do they do differently?
Is it just the media credit plugin that’s not working with Sections?May 5, 2017 at 12:34 pm #314526waytogo
Yes, I’m using both core WP captions and Media Credit plugin. Neither are working with sections.
Captions place text under the photo centered or flush left. The text is big enough to read easily.
Media Credit places smaller text flush right in smaller font size. Also, it has two fields, one for the credit display, and another for the URL the credit links to. I’m delighted with this plugin because the alternative is to try to style two different captions, or different styles within captions. I’m trying to be careful with image copyright, etc. so this is very helpful.
EXAMPLE: WORKING ON REGULAR PAGE
See this test page:
EXAMPLE: NOT WORKING ON SECTIONS PAGE
https://www.amearth.org/ at top
This is a regular page designated as the front page in WordPress, then broken into sections with GP.May 5, 2017 at 12:38 pm #314529waytogo
Doing some more testing to narrow this down.May 5, 2017 at 1:14 pm #314534waytogo
Tom, after trying dozens of tests to reproduce the problem, I conclude that it was caused by my naming the page “front page” /front-page, which is reserved in wordpress so I think calls a different template or something. Nothing else seems to make a difference.
The good news is that GP works fine as long as the page with sections is NOT named “front-page”. So I think you can close this ticket. Sorry for false alarm. Cheers.May 5, 2017 at 1:19 pm #314537TomLead DeveloperLead DeveloperMay 5, 2017 at 3:30 pm #314572waytogo
Upon reflection, it may be related just to the one page, not even the name front-page. I carefully checked various settings such as wpautop, etc. and couldn’t find what made that page behave different. No further action requested by you at this time. Thank you.May 5, 2017 at 7:04 pm #314611
- You must be logged in to reply to this topic.