eassae
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Using the_excerpt as metaFinal:
<?php function og_meta_desc() { global $post; $meta = strip_tags($post->post_content); $meta = strip_shortcodes($meta); $meta = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), ' ', $meta); $meta = substr($meta, 0, 200); if ( $meta != '' ) { echo "<meta property=\"og:description\" content=\"$meta...\" />"; } else { echo "<meta property=\"og:description\" content=\"Here is some cool new content. Check it out.\" />"; } } og_meta_desc(); ?>Forum: Fixing WordPress
In reply to: Using the_excerpt as metaSolved:
<?php function og_meta_desc() { global $post; $meta = strip_tags($post->post_content); $meta = str_replace(array("\n", "\r", "\t"), ' ', $meta); $meta = substr($meta, 0, 200); if ( $meta != '' ) { echo "<meta property=\"og:description\" content=\"$meta...\" />"; } else { echo "<meta property=\"og:description\" content=\"$Here is some cool new content. Check it out.\" />"; } } og_meta_desc(); ?>Forum: Fixing WordPress
In reply to: Gallery writing twoThe problem seems to be in the media.php line 861
if ( $columns > 0 && ++$i % $columns == 0 ) $output .= '<br style="clear: both" />';If I delete <br style=”clear: both” /> in line 861 everything works fine.
I am by no means a php expert so I don’t really know what I am doing by removing this part of the code.
So if someone could give me an explanation on why this might be necessary it would be greatly appreciated.
Forum: Themes and Templates
In reply to: Adding special characters between menu items using WP_LIST_PAGESHello Capn Code.
I am using your script and it works great. I am just having one problem. My last menu item does not get assigned the class of page-active when pressed.
If you could offer any solutions that would be great.
Viewing 4 replies - 1 through 4 (of 4 total)