• Resolved y0mannn

    (@y0mannn)


    I have a shortcode from a plugin.
    It is [slider3d_gallery 2000 /]
    I want to add this on my homepage at a specific location.
    I can’t edit my homepage content.
    So i’ll have to add it as HTML.
    The place I want to add it as would replace this:
    <img title=”x” src=”https://xxxxxx/wp-content/uploads/2000/12/xxx.jpg&#8221; alt=””>
    But the problem is: How do I convert that shortcode to HTML
    so I can replace it with that Img

    I’m using latest version, 3.3

    Thanks so much, Merry Christmas

Viewing 15 replies - 16 through 30 (of 37 total)
  • Thread Starter y0mannn

    (@y0mannn)

    Oh. Misread what you wrote.
    Yes, it’s a plugin. The plugin name is slider3d_gallery
    and I’m getting the “slider3d_gallery” message exactly where I want my plugin to display. It’s on the homepage.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This one: https://www.ads-software.com/extend/plugins/slider3d-gallery/

    Okay. What about this:

    <?php echo do_shortcode('[slider3d_gallery 2000]'); ?>
    Thread Starter y0mannn

    (@y0mannn)

    Okay, I tried this again.
    I added this on front-page.php at the location I wantd it to be.
    This is what I added:
    <?php echo do_shortcode(‘[slider3d_gallery 2000 /]’); ?>

    Thread Starter y0mannn

    (@y0mannn)

    After trying that, the text appears.

    I just tested it also. Doesn’t work out of post/page content ($content).

    function slider3d_gallery($content){
    	$content = preg_replace_callback("/\[slider3d_gallery ([^]]*)\/\]/i", "slider3d_gallery_render", $content);
    	return $content;
    }

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes, notice how I dropped the / from the code ?? There was a reason.

    So when ‘the text appears’ youmean ‘All I get on the page is [slider3d_gallery 2000]

    Is this page a WordPress page?

    And if so, can you post the code for it to pastebin.com and link it here?

    Can’t get it as an external shortcode, but it’s possible. You may ask author of plugin to provide this feature.

    Thread Starter y0mannn

    (@y0mannn)

    @ipstenu Same thing without the “/”
    Yes, that’s what I mean
    Yes, it’s a wordpress homepage
    What kind of code do you need? I’m sorry, kinda lost

    @vjpo, I have tried. Author won’t reply and I can’t find any other similar plugin that would do the work.

    Thread Starter y0mannn

    (@y0mannn)

    @vjpo Are you aware of any other plugin, or code, or something that would do the work – if it won’t work out of post/page content ($content).

    The problem – this is not a short code. I didn’t get a stable running of copied/edited slider3d_gallery function in header.php. One time it works, one not.
    May be some code ninjas will kill this question )
    You can find other plugins in google search or in the plugins section of this site by using keywords like flash featured slider plugins wordpress

    Thread Starter y0mannn

    (@y0mannn)

    I found top 15 here.

    https://www.tooft.com/15-wordpress-slide-show-plugins-featured-articles-home-page/

    Any suggestions which would work, rather than I try all of em?

    I am not an expert in flash sliders ?? I am using little jQuery Cycle script for slideshows.
    But, according to saying “If the mountain will not come to Muhammad…” , there is custom trick for slider3d_gallery. A bit bulky, but slider will work in any other part of a theme.
    So, you can create new page, paste [slider3d_gallery 2000 /] , publish. Then insert, where you need in template, this code. Edit 2012 – the page id ??

    <?php
    $the_query = new WP_Query( 'page_id=2012' );
    while ( $the_query->have_posts() ) : $the_query->the_post();
        the_content();
    endwhile;
    wp_reset_query();
    ?>

    Of course if you have in theme automatic wp_page_menu(), this page must be excluded from menu.

    Thread Starter y0mannn

    (@y0mannn)

    Thank you genius, works like a charm.
    Just 2 things.

    1. I need to readjust it a little, I tried &nbsp because I had to move it to right a little. but they don’t make any different.What should I do if I need to move it a little down, and little to the right.

    2. It sort of loads slow, which is not a problem but gets annoying. Any suggestions or do you know a plugin that would create a flash page, saying “loading” and use jquery to load up the page, so people see the loading page first and they see the homepage once everything is loaded.
    (saw this plugin on vbulletin)

    Thanks

    Thread Starter y0mannn

    (@y0mannn)

    worked fine for bringing it down
    I have tried the following for pushing it to the right that didnt work:
    1. &nbsp
    2. <dd>
    3. Blockquote

    Thread Starter y0mannn

    (@y0mannn)

    Okay 1 more thing,
    Many people told me &Nbsp should work, but instead of shifting it to the right, it is shifting it down.

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘Short Code issue please help’ is closed to new replies.