Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] In Sections,

Home Forums Support In Sections,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #314279
    waytogo

    (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.46
    GP Premium 1.2.96
    #314405
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    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.

    #314425
    waytogo

    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/

    #314499
    Tom
    Lead Developer
    Lead 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?

    #314526
    waytogo

    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:
    https://www.amearth.org/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.

    #314529
    waytogo

    Doing some more testing to narrow this down.

    #314534
    waytogo

    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.

    #314537
    Tom
    Lead Developer
    Lead Developer

    That’s very strange – thanks for the heads up!

    #314572
    waytogo

    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.

    #314611
    Tom
    Lead Developer
    Lead Developer

    No problem – thanks for reporting back 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.