WP Marketing » Tag: agent theme - Recent Posts http://wpmarketing.org/forum/tags/agent-theme Wordpress for Internet and Affiliate Marketing en-US Sat, 21 May 2011 16:15:39 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php kim_w on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-42 Wed, 28 Oct 2009 18:29:09 +0000 kim_w 42@http://wpmarketing.org/forum/ <p>working perfectly now - thanks! </p> kim_w on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-41 Wed, 28 Oct 2009 18:22:20 +0000 kim_w 41@http://wpmarketing.org/forum/ <p>ah ha! thank you -- I will go to work on the theme files. I appreciate your feedback.... </p> hanadaddy on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-40 Wed, 28 Oct 2009 18:20:24 +0000 hanadaddy 40@http://wpmarketing.org/forum/ <p>kim_w, I did some research and found the theme files. You know these commercial theme files use non standard ways to implement particular tasks because there are limitation with the provided official APIs.</p> <p>I checked and found that your Agent Theme is using <code>the_content_limit</code> function included in the <code>functions.php</code>. And calling <code>the_content</code> instead of <code>the_excerpt</code> within the customized function. That caused my Hana Flv Plugin to produce output for the case of content output, not the excerpt output. That's why you got all the scripts . </p> <p>Just to make things clear , my plug-in works OK with the themes using standard <code>the_excerpt</code> function. Yours is having problem since it's not using the standard API.</p> <p>Since this is custom modification, I would not update or modify my plug-in but rather you should check your theme file.</p> <p>In <code>functions.php</code>, add below lines after line 310 </p> <pre> global $wp_current_filter; array_push($wp_current_filter,'get_the_excerpt'); </pre> <p> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=40&bbat=6'><img src='http://wpmarketing.org/forum/?bb_attachments=40&bbat=6&inline' /></a></p> <p>Also, if that line number does not work, just find the 'the_content_limit' within the functions.php file and add the above lines after that. </p> kim_w on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-39 Wed, 28 Oct 2009 13:36:22 +0000 kim_w 39@http://wpmarketing.org/forum/ <p>WP 2.8.4 and theme is Agent Theme by StudioPress. I will PM you if you need to see other files, too - thanks. </p> hanadaddy on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-38 Wed, 28 Oct 2009 12:58:38 +0000 hanadaddy 38@http://wpmarketing.org/forum/ <p>This is to add the image showing the problem.</p> <p> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=38&bbat=5'><img src='http://wpmarketing.org/forum/?bb_attachments=38&bbat=5&inline' /></a> </p> hanadaddy on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-37 Wed, 28 Oct 2009 12:40:59 +0000 hanadaddy 37@http://wpmarketing.org/forum/ <p>What version of Wordpress are you using? Can I get try your theme file for testing? ( Just for index.php ) If you can, I will PM my email so you can send it. </p> kim_w on "Code showing up in WP teaser again" http://wpmarketing.org/forum/topic/code-showing-up-in-wp-teaser-again#post-36 Wed, 28 Oct 2009 11:59:48 +0000 kim_w 36@http://wpmarketing.org/forum/ <p>Hi, </p> <p>I am having the same problem that was posted a few weeks ago (<a href="http://wpmarketing.org/forum/topic/hana-code-shows-up-in-wordpress-teaser" rel="nofollow">http://wpmarketing.org/forum/topic/hana-code-shows-up-in-wordpress-teaser</a>) but I cannot find any resolution that works for me --</p> <p>The code for the player is showing up in the teaser for my WP posts. I entered the 'description' as suggested, but it did nothing; I also tried the simple solution of adding more text description to try to "bump" the code off the teaser, but that didn't work either. You can see an example from <a href="http://www.viewdigs.com" rel="nofollow">http://www.viewdigs.com</a> Can you advise what to do? </p>