StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 03-21-2010, 02:34 AM
temporary_saint temporary_saint is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Mar 2009
Posts: 7
Default 468x60 Ad Block - Shortcode?

I've tried adding a line of shortcode from AdRotate (http://wordpress.org/extend/plugins/adrotate/) into the 468x90 Ad Block from the Lifestyle Theme Option menu.

The problem I'm having is that the shortcode is just being displayed as pure text, for example: [adrotate group="1"]

instead I've had to go in and ad the php code directly into the theme - which works. Does anyone know why WP shortcodes aren't accepted into the ad block or how to make them work (much easier to manage!)?

Cheers!
dale
  #2  
Old 03-21-2010, 07:05 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default

the sidebar does not accept shortcode, however if you add this to your functions.php right before the closing ?> you can make a text widget accept shortcode

PHP Code:
add_filter('widget_text''do_shortcode'); 
  #3  
Old 03-21-2010, 02:48 PM
temporary_saint temporary_saint is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Mar 2009
Posts: 7
Default

Excellent - will this also enable shortcode for the 468x90 Ad Block (the one between a post and the comments in a blog)?

This isn't a widget, it's the one under SETTINGS > Lifestyle Theme Option menu.

Cheers!
dale
  #4  
Old 03-21-2010, 03:11 PM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default

try this to add your shortcode there

PHP Code:
<?php
 
echo apply_filters('the_content''[shortcode here]'); 
?>
 

Tags
468x60, ad block, ad rotate, shortcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification of 468x60 ad block in header ntcrawler General Discussion 2 06-21-2010 09:03 PM
Original code for 468x60 Ad block in Magazine Theme tracyd General Discussion 3 05-18-2010 11:22 PM
468x60 Ad Block problem R29 General Discussion 4 04-23-2010 11:26 AM
468x60 Ad Block Doesn't Appear Anson General Discussion 3 01-28-2010 05:12 AM
help with 468x60 ad block homepage Alex Miller General Discussion 1 08-07-2009 12:44 AM


All times are GMT -5. The time now is 05:24 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.