Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1384024
    Fairbanking
    Participant

    Hi, I am using the Postie plugin, which puts attached images into [gallery] but I want the gallery to appear below the email text, rather than in what looks like a header, installing the child theme does not seem to me to give me this capability either.

    Once I have that behaviour sorted, “would it be reasonable to assume” I could then modify the plugin to to point at [Envira] (or whatever the shortcode is) and take advantage of configuring the layout

    Currently on my production site a post looks like this using the standard WordPress “Create Gallery” function from within Media, and I want to replicate this (including the Lightbox functionality)

    http://intraconis.net/?p=6911

    Currently I get this on my testing server.

    http://www.intraconis.com/?p=8931

    Advice and guidance appreciated

    #1384072
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials, if necessary, so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password (only if necessary)

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1385296
    Fairbanking
    Participant
    This reply has been marked as private.
    #1385301
    Fairbanking
    Participant
    This reply has been marked as private.
    #1385598
    Rad
    Moderator

    Hi there,

    Would you mind providing the exact thread where you pulled those replies?

    Are you intending to replace with Envira shortcode, like making the Envira shortcode the default ? It’s not possible.

    And please provide your site’s URL as well. I’m still confused about it, would you mind providing more details and mockup design as samples? Are these galleries already existing from your other site and just need to automatically include below the post of your new site?

    Thanks!

    #1385650
    Fairbanking
    Participant
    This reply has been marked as private.
    #1385651
    Fairbanking
    Participant
    This reply has been marked as private.
    #1385653
    Fairbanking
    Participant

    Every time I reply it appears various random threads are being pulled in from your support system.

    I have been posting the relevant urls, from my sites which are being picked up by your system and linking to these unrelated posts. I have inserted a series of 5 —– to break the url to see if that helps

    http://—–intraconis.net/?—–p=—-8237

    I will see if anything gets pulled when I hit submit

    #1385658
    Fairbanking
    Participant

    So take the —– out of the above link to see what I would like

    and take them out of this to see what I am current getting

    http://—–intraconis.com/?—–p=—-8976

    which is what I need guidance with

    Weird

    #1385925
    Rad
    Moderator

    Hi there,

    Thanks, it’s clear now 🙂

    Though, it’s only possible with custom coding. Example, you can place gallery shortcode automatically through the_content filter like this

    add_action('the_content', 'post_footer_gallery', 99999999);
    
    function post_footer_gallery ( $content ) {
    
    return is_singular('post') ? $content.do_shortcode('[gallery_shortcode]') : $content;
    
    }

    What I’m not sure is how you’ll differentiate each gallery for each post since it has to be automatic. You may ask second opinion from a developer 🙂

    Or you may use WP Custom Field https://codex.wordpress.org/Custom_Fields, example, let’s say you added post_gallery as field NAME and value of [gallery_shortcode id=”3234″] as value then you can simply add this once

    add_action('the_content', 'post_footer_gallery', 99999999);
    
    function post_footer_gallery ( $content ) {
    
    return is_singular('post') ? $content.do_shortcode( get_post_meta(get_the_ID(), 'post_gallery', true) ) : $content;
    
    }

    Then onwards, you can add custom field post_gallery to each of your post with your gallery shortcode.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1384024 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>