subtire
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] [dropcap]text[/dropcap] helpIt seems that All in One SEO Pack gets the code ok and doesn’t skip the text inside the [dropcap shortcode and I didn’t used the custom field to paste the text without the shortcode…
I guess that my problem should be solved somewhere here
function wpfbogp_callback( $content ) { // Grab the page title and meta description $title = preg_match( '/<title>(.*)<\/title>/', $content, $title_matches ); $description = preg_match( '/<meta name="description" content="(.*)"/', $content, $description_matches ); // Take page title and meta description and place it in the ogp meta tags if ( $title !== FALSE && count( $title_matches ) == 2 ) { $content = preg_replace( '/<meta property="og:title" content="(.*)">/', '<meta property="og:title" content="' . $title_matches[1] . '">', $content ); } if ( $description !== FALSE && count( $description_matches ) == 2 ) { $content = preg_replace( '/<meta property="og:description" content="(.*)">/', '<meta property="og:description" content="' . $description_matches[1] . '">', $content ); } return $content; }I can’t figure out because the <meta name=”description” on my page gets the description correctly and the OG plugin skips the text inside the shortcode… even if the function of the plugin tells him to get the OG description from the <meta name=”description”…
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] [dropcap]text[/dropcap] helpHello Chuck and thanks for the reply!
I wrote about this problem with [dropcap][/dropcap] on the support forum for my current WP theme and they gave me a PHP function that resolved the issue because the shortcode skipped the text inside the shortcode on the summary of the article on the WP index page…Here is the discussion and the code
function custom_excerpt($text = '') { $raw_excerpt = $text; if ( '' == $text ) { $text = get_the_content(''); // $text = strip_shortcodes( $text ); $text = do_shortcode( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $excerpt_length = apply_filters('excerpt_length', 55); $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); } remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' ); add_filter( 'get_the_excerpt', 'custom_excerpt' );Can you tell me if this function can help me resolve the issue with your plugin and if yes, where can I implement this function to make it work… 🙂
Thanks again!
Forum: Plugins
In reply to: [WP Category Permalink] Not woking after update from 1.4 to 2.0Version 1.7 works perfect for me right now. I will wait maybe for 2.2 or later. 😀
Forum: Plugins
In reply to: [WP Category Permalink] Not woking after update from 1.4 to 2.0I downgraded to v1.6, works like a charm now. I will follow this post to see when the 2.x version will work ok.
Thanks for the plugin Jordy!
Forum: Plugins
In reply to: [WP Category Permalink] Not woking after update from 1.4 to 2.0Oh my, this is going too bad. I can’t even edit the permalink after I save the draft version, only the first time, after that, it won’t work…
And another one… when I click to see the draft version it directs me only to /cat//?preview=true.I will downgrade right away to the last stable version. 🙁
It messed all my WordPress :/
Forum: Plugins
In reply to: [WP Category Permalink] Not woking after update from 1.4 to 2.0I won’t switch to the old version rigt now, I’m waiting for a quick fix…
I will switch to the new one in 1-2 days if no fix is released.Forum: Plugins
In reply to: [WP Category Permalink] Not woking after update from 1.4 to 2.0Same problem here, it won’t go to /parent-cat/subcat/postname… now it’s just /parent-cat/postname… or /subcat/postname…
Any fixes?
I don’t use WooComm…
And another problem… the permalink of photos in a post before publishing is not domain.com/?attachment=?xxx, instead it looks like in a published post domain.com/selected-cat/attachment/name-of-the-attach/
It was unchecked, it works like a charm now, thanks a lot wpsmort!
Have a great day!
Forum: Themes and Templates
In reply to: [Hueman] Change domain above the featured…?Hello bdbrown, I didn’t work on the problem more seriously yet. I will post here the results as soon as I will get them.
Forum: Fixing WordPress
In reply to: what i need to prepare my site for high trafficTry WP Super Cache plugin.
Forum: Themes and Templates
In reply to: [Hueman] Change "Follow" and "More" caption sidebarForum: Themes and Templates
In reply to: [Hueman] [dropcap]text[/dropcap] helpThank you very much bdbrown!
It works like a charm!
I added the function to functions.php and it works!
Thank you!
Forum: Themes and Templates
In reply to: [Hueman] [dropcap]text[/dropcap] helpMaybe Alexander Agnarson can do something about this.
Forum: Themes and Templates
In reply to: [Hueman] [dropcap]text[/dropcap] helpHello Bojan,
Thank you for the reply, I will try that on my future posts but I really need a general solution because I have about 200+ posts, most of them begin with [dropcap][/dropcap] and I think that it’s a lot of manual work for me to go back and edit almost every post.
Hello again bdbrown,
Yes, it seems that most of the shortcodes [dropcap], [column] are not ok with the short description, they only work on the single.php page. 🙁
If you begin your post with a [column], the text inside the column will not display at all in the short description… and, as we already know, neither the letters inside the [dropcap][/dropcap]Thanks again!
Forum: Themes and Templates
In reply to: [Hueman] [dropcap]text[/dropcap] helpSure, sorry, I fotgot to to that in the first post: http://travel210.com/