[SOLVED] Conditional Excerpt Strip
I would like the post excerpts to not strip html tags for a specific page. I tried inputting the following in Configure EXCERPTS > "Don't strip these tags"
<?php if (! is_home() ) {?><iframe><span><p><?php } ?> but it seems Atahualpa ignores the php conditional test. Using this so that I can use the full image size or embedded video for the excerpt in all pages except for the home page. The home page is using featured image thumbnails that are a certain size. |
I am trying to understand what you want. Is the following correct?
|
Quote:
Yes, this is exactly what I want to do. Thank you, SupraTT |
That is not an area that php is evaluated in.
|
Quote:
Do you know where I can make the necessary modifications? I looked in functions.php: Code:
function bfa_wp_trim_excerpt($text) Code:
// Build the excerpt from the post Sorry my PHP knowledge is basic. |
you could try this, change the line
HTML Code:
$text = strip_tags($text, $bfa_ata['dont_strip_excerpts']); HTML Code:
if (!is_home()) { |
Hi Juggledad,
Thank you for the coding help. That worked for me. SupraTT |
All times are GMT -6. The time now is 12:15 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.