• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Using WP-Cycle as a widget vs short code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Using WP-Cycle as a widget vs short code

This topic is: not resolved

Tagged: shortcode, widgets, WP Cycle

  • This topic has 9 replies, 2 voices, and was last updated 13 years, 5 months ago by SoZo.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 27, 2012 at 1:11 pm #1909
    john gronley
    Member

    Can someone tell me how to use WP-Cycle in the widget position for the slider in the AgentPress theme? Currently the only way to use this is with a short code in a post and some of the themes have code written in them so that the WP cycle appears in the widget on the home page. I am starting to use Agentpress and not too crazy about the Genesis slider and would prefer to use WP-Cycle.

    Here is an Agentpress site with WP-Cycle http://homesaleaz.com and here is the one I have designed with Genesis Slider http://chandler-homesfor-sale.com

    Thanks

    PS I really miss the old format for the forums

    November 27, 2012 at 1:30 pm #1912
    SoZo
    Member

    You need to replace the sidebar with wp_cycle's template tag or enable shortcode in text widgets and use a text widget.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 27, 2012 at 1:37 pm #1916
    john gronley
    Member

    Thanks Sozo so if I want the WP-Cycle in the slider widget I would use a text widget; how would I insert the [wp-cycle] into the text widget?

    November 27, 2012 at 2:20 pm #1922
    SoZo
    Member

    You'd add the shortcode to the text widget the same way you'd add it to a post or page.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 27, 2012 at 6:44 pm #1953
    john gronley
    Member

    I tried that Sozo and it didn't work; I read somewhere that you have to add some CSS code to the functions file

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode');

    but I am not sure where to place that in the functions.php?

    November 27, 2012 at 6:47 pm #1955
    SoZo
    Member

    Yes, that's what I linked to in my original post ๐Ÿ˜‰

    You can place it anywhere in functions.php as long as it's not within another function. To be safe most people tack stuff onto the end.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    November 27, 2012 at 6:55 pm #1957
    john gronley
    Member

    Great so I don't have to worry about putting it between a */ and /**? I simply scoll to the very bottom and at the end ofย ) ); I would add

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode');
    or do I have to close it with a /**
    Thanks,
    
    
    John
    
    
    		
    	
    November 27, 2012 at 7:49 pm #1967
    john gronley
    Member

    Got it to work!!!

    Thanks LOTS

    November 27, 2012 at 7:52 pm #1968
    john gronley
    Member

    PS: I have been flying by the seat of my pants for two years with WordPress and tweaked some good sites and got them ranked very well in the SERP's...just a testament to the simply-complex design of the wordpress platform:)

    November 27, 2012 at 8:34 pm #1974
    SoZo
    Member

    You're welcome ๐Ÿ™‚


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Using WP-Cycle as a widget vs short code’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble