WP Cycle – Which Themes Support It?

Community Forums Forums General Discussion WP Cycle – Which Themes Support It?

This topic is: resolved

This topic contains 21 replies, has 3 voices, and was last updated by  braddalton 10 months, 3 weeks ago.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #70680

    braddalton
    Participant
    Post count: 9789

    All PHP needs to be pasted at the end of your child themes functions.php file.

    The shortcode needs to go in the text widget.


    #70695

    eurasiarc
    Member
    Post count: 21

    Both of the conditions stated above were implemented and integrated yesterday into my blog which uses Magazine Pro theme.

    1) The recommended php was pasted at the end of the theme’s functions.php page

    2) The shortcode provided was pasted into the text widget.

    This did not solve the problem entirely because parts of the shortcode itself appear in the tex widget instead of being hidden. The problem is how to get the shortcode hidden from view so that the widget displays only WP Cycle and does not have sections of code that clutters the layout.

    There is something about text widgets in the current 3.7.1 version of WordPress or the shortcode itself that causes the shortcode to appear in the widget instead of WP Cycle. The shortcode provided does not work properly in the text widgets of WordPress and the Magazine Pro theme.

    Please look at the site itself. All of the instructions provided have been followed to the letter and the shortcode has been entered verbatim into a text widget. It does not work.

    Something needs to be done to modify and improve the shortcode so that what the shortcode is designed to do, ie present the WP Cycle images in a legible and uncluttered fashion without fragments of shortcode appearing in the text widget on the homepage.

    A modification or revision of the shortcode that solves this problem is needed to make the shortocde and WP Cycle function properly in the Magazine Pro and probably other themes. There are clearly problems in the syntax of the shortode itself when it comes to using them with WordPress 3.7.1 and the Genesis based Magazine Pro theme which came out a few days ago. What is needed is for all of the coding to disappear from the text widget.

    The instructions on the page provided need elaboration and revision.

    http://globalanalystonline.com/wp/

    After some clarifications, the instructions and the shortcode recommended on this page were all implemented exactly as recommended. Shortcoding was enabled on the functions.php page and the shortcode provided was pasted into the text widget.

    http://wpsites.net/best-plugins/3-ways-to-display-wp-cycle-slide-shows-in-your-theme/#wp_cycle_PHP_tag_In_Custom_Function

    #70696

    Summer
    Participant
    Post count: 1092

    What code exactly are you using as the shortcode in the text widget?

    From your previous post, it looks like you’re putting more than just the shortcode in there, with an “echo” in the text widget, when all that needs to be in there is [wp_cycle] with no other extra code or text.

    The php code in functions will allow that shortcode (only the info in brackets) to operate in widgets the same way it would operate in a page or post. If nothing is showing up when you use just [wp_cycle], then there could be an error in what was added to functions.


    #70699

    eurasiarc
    Member
    Post count: 21

    Thanks very much for getting back.

    I have tried the original shortcode provided on the WP Cycle documentation and tutorial page.

    I tried a number of modifications, but currently the widget has the exaxt shortcode that appears on this tutorial page.

    This is the exact shortcode that has been pasted into the widget

    add_action(‘genesis_header’, ‘wpcycle_slider_header_home’);

    function wpcycle_slider_header_home() {
    if (is_home()) {
    echo do_shortcode(‘[wp_cycle]‘);
    }
    }
    /**
    * @author Brad Dalton – WP Sites
    * @example http://wp.me/p1lTu0-a1K
    */

    This is exactly the shortcode that appears on this WP cycle documentation page.

    http://wpsites.net/best-plugins/3-ways-to-display-wp-cycle-slide-shows-in-your-theme/#wp_cycle_PHP_tag_In_Custom_Function

    The shortcode provided obviously needs to be modified so that it will appear properly when used in a text widget.

    One can see the results on this blog where the shortcode has been pasted into a text widget. You will see that the widget has WP Cycle with rotating images but shortoding clutters the widget. Something has to be done so that the shortcode will disappear without WP Cycle also disappearing.

    http://globalanalystonline.com/wp/

    • This reply was modified 10 months, 3 weeks ago by  eurasiarc.
    • This reply was modified 10 months, 3 weeks ago by  eurasiarc.
    #70701

    Summer
    Participant
    Post count: 1092

    That’s not the shortcode… that’s the entire function. Are you familiar with what shortcodes are and how they work?

    Remove everything from the text widget, and put ONLY [wp_cycle] in there.


    #70702

    eurasiarc
    Member
    Post count: 21

    Thanks very much for the very simple clarification.

    I have used similar simple shortcodes used with other plugins like responsive video, but was confused by the technical explanation given in the WP Cycle tutorial where what is meant by shortcode is not necessarily clear to the non developer. I think there needs to be an additional paragraph or sentence in the tutorial specifying exactly what the shortcode for WP Cycle should be. The tutorial includes an instance of the shortcode but inside a longer function statement.

    The real short shortcode actually works! Beginners and non techs just need to know what it is.

    Thanks again to you all and thanks to the developer of WP Cycle for a useful and attractive plugin.

    #70705

    braddalton
    Participant
    Post count: 9789

    Its not the most efficient way to add the WP Cycle slider to a theme by using a shortcode.

    The most efficient way is to use the PHP code in your child themes functions file with a hook and/or conditional tag.

    Another good method is to add the code wrapped in PHP tags to your home.php or other template file in your child theme, if it exists.


Viewing 7 posts - 16 through 22 (of 22 total)

The topic ‘WP Cycle – Which Themes Support It?’ is closed to new replies.