Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Scrolling Posts WordPress

  • SOLVED

Hi There,

We are currently using a theme with an abundance of useful Shortcodes.

However this has proved to cause us issues when adding a Scrolling News Plugin (http://www.gopiplus.com/work/2011/09/13/vertical-scroll-post-excerpt-wordpress-plugin).

The homepage uses the html wordpress editor that is in the Theme options.

We require this on the homepage, on the second column.

Please see the attached image for the project url.

Answers (4)

2012-09-12

Dbranes answers:

you could try to add this into your functions.php

//[scroll]
function scroll_func( $atts ){
if(function_exists("spe_show")){
spe_show();
}
}
add_shortcode( 'scroll', 'scroll_func' );


and then you can use [scroll] as the shortcode defined by the widget.

Hope this helps.


Dbranes comments:

ps: this version is better:

//[scroll]

function scroll_func( $atts ){

if(function_exists("spe_show")){
ob_start();
spe_show();
return ob_get_clean();
}

}

add_shortcode( 'scroll', 'scroll_func' );


jimspankling comments:

Hi There,

Thank you for helping. I have put this in.

It works to a point! Could I please send you login details and ftp to have a further look.

It is now scrolling but looks like we need to define a height.

Many Thanks


Dbranes comments:

Hi jimspankling,

sure, you can send me PM here

http://wpquestions.com/user/profile/id/8523

2012-09-12

Michael Caputo answers:

I can help, but I don't fully understand your request.

You want to add an editable area on the home page in the 2nd column?


jimspankling comments:

We would like the news to scroll just like the Plugin mentioned.

The homepage layout is set by html code editor.

Does this make sense?

2012-09-12

Arnav Joy answers:

so you mean that "Recent Carbon News" on the page is also coming from the editor itself?


jimspankling comments:

Yes the Recent Carbon News is currently a shortcode.

[one_fourth]
[fancy_header3]Recent Carbon News[/fancy_header3]
[recent_posts number="3" disable_thumb="1"]
[/one_fourth]


Arnav Joy comments:

so this plugin provides any short code ? or any widget to display the news?

2012-09-12

Asad Iqbal answers:

There have a clear instruction, can you a look again:

<strong>
Plugin configuration

Drag and drop the widget: Go to widget page under Appearance tab, Drag and drop Scroll post excerpt widget into your side bar.

Add directly in the theme: Use this code <?php if (function_exists (spe_show)) spe_show(); ?> to add this plug-in in to your theme files.</strong>

Let me know If I'm missing something.