Drew Baker
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: jQuery UI Tabs and wp_enqueue_scriptBumping because I still can’t work this out.
Forum: Fixing WordPress
In reply to: How to strip shortcodes if on index.php?Michael, looking through the codex page for conditional tags, it’s seems I need to combine the above with something using the is_category(‘Video Highlight’) tag, but I’m not sure what the correct PHP code should be (I suck at PHP).
Thanks again!
Forum: Fixing WordPress
In reply to: How to strip shortcodes if on index.php?This example is perfect! Thanks Michael! Is there a way to make it work for the_content tags that are in a certain DIV perhaps?
It’s that now that I have this working I released I have a part on my index.php page that shows a Video Highlight and that uses shortcodes to display a Viper Video. Here is the code I use to pull the latest post to show the video:
<?php $my_query = new WP_Query('cat=1532&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <?php the_content(''); ?> <?php endwhile; ?>Thanks again! I’m going to add that code as an example on the Codex for strip_shortcodes.
Forum: Fixing WordPress
In reply to: wp_enqueue_script with Jquery UI and TabsHey did you figure this out? If so how’d you do it?
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] Intergrate with TinyMCEComments?Hey Viper,
Thanks for letting me know. I see from the Dev blog that your working on adding VVQ to the core! Great to hear!You did some great work on this plugin over the years. Your going to have to make a plugin that allows your users to convert all our old VVQ shortcodes to work with the new WP2.9 ones.
Thanks again.
Forum: Plugins
In reply to: [Plugin: Flash Feed Scroll Reader] Not working in wp2.8.1Anything? Would love to get this working. I have a feeling it is something to do with MediaTemple and the fopen command.
Forum: Plugins
In reply to: [Plugin: Flash Feed Scroll Reader] Not working in wp2.8.1I’ve checked them, and still nothing. Is there something my server might not support? I’m hosted on MediaTemple.
This is my feed: http://www.popmag.com.au/feed/
Forum: Plugins
In reply to: Advanced Excerpt & Viper’s Video Quicktagoneone11, did you ever figure this out? I too would like to use viper videos in my excerpt.
Forum: Plugins
In reply to: Advanced Excerpt & Viper’s Video QuicktagI too would like to put a viper video in the excerpt.
Forum: Themes and Templates
In reply to: Remove shortcodes from auto excerptHey RGlover,
Thanks so much for the help, but it didn’t work. I’ve contacted the plugin author (Viper Videos) so maybe he can help.-Drew
Forum: Themes and Templates
In reply to: Functions.php – Random Widget ClassHey RGlover,
That worked, except you missed a ” after the rand verible. It worked like this:<?php function get_rand(){ $rand = (string) rand(5,15); return $rand; } if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Main Sidebar', 'before_widget' => '<li><div id="%1$s" class="%2$s">', 'after_widget' => '</div></li>', 'before_title' => '<h2 class="widgettitle menu'.get_rand().'">', 'after_title' => '</h2>', )); ?>Thanks again!
I have another question for you. How to remove shortcodes from the_excerpt? I have a thread here: http://wordpress.org/support/topic/291261?replies=1
Forum: Themes and Templates
In reply to: Functions.php – Random Widget ClassThanks, that’s what I thought. But how do I do that? I have the idea, just not the skills!
Forum: Themes and Templates
In reply to: Shortcodes don’t work in excerpts?I’d like to remove the shortcodes from the_excerpt too. But I can’t get it to work. Is my functions.php correct?
<?php if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Main Sidebar', 'before_widget' => '<li><div id="%1$s" class="%2$s">', 'after_widget' => '</div></li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'Comments Sidebar', 'before_widget' => '<li><div id="%1$s" class="%2$s">', 'after_widget' => '</div></li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'Footer Sidebar', 'before_widget' => '<li><div id="%1$s" class="%2$s">', 'after_widget' => '</div></li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); add_filter('the_excerpt', 'do_shortcode'); ?>Thanks for the help!
Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] excerpt bb code parsingViper, I found this page which was useful, but my PHP skills arn’t good enough to figure it out.
http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/Forum: Plugins
In reply to: [Plugin: Viper’s Video Quicktags] excerpt bb code parsingHey Viper,
I’d like to remove the shortcode from excepts as well. I’ve added that filter to my functions.php file but no joy.You can see my development site here: dev.popmag.com.au.
This is my functions.php file:
<?php if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Main Sidebar', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'Comments Sidebar', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); register_sidebar(array('name'=>'Footer Sidebar', 'before_widget' => '<li>', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); add_filter( 'get_the_excerpt', 'do_shortcode', 5 ); ?>-Drew
PS: I agree WordPress should remove short codes from the excerpt.