Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Oh well it seems that code tags with strong tags are not geting along well.

    Once again, change the first:

    echo “\t<meta property=’og:description’ content='”.get_bloginfo(‘description’).”‘ />\n”;

    with

    echo “\t<meta property=’og:description’ content='”.esc_attr(substr(strip_tags($post->post_content), 0, 255)).”…’ />\n”;

    You can also define how many characters to be displayed in the description. I wanted 255.

    Hi

    You can do this hack into the plugin code. it works nice for me as i had the same problem as you had. Find the next piece of code in the plugin and change the bolded line :

    // do descriptions
                    if (is_singular('post')) {
                            if (has_excerpt($post->ID)) { // truncate_post($et_excerpt_length);
                                    echo "\t<meta property='og:description' content='".esc_attr(strip_tags(get_the_excerpt($post->ID)))."' />\n";
                            }else{
    				<strong>echo "\t<meta property='og:description' content='".get_bloginfo('description')."' />\n";</strong>
    
                            }

    with:

    <strong>echo "\t<meta property='og:description' content='".esc_attr(substr(strip_tags($post->post_content), 0, 255))."...' />\n";</strong>

    If i am not wrong he said this: .. when he adds a new post to his WP w3tc will automatically upload images to the CDN. But the URL of the image in the new post will still be the local host of the wordpress (thus the image will have the default upload URL from wordpress). I got this too and the URL of the image only changed after i clicked on “Upload custom files”. Also, when i click “Export media library to CDN” it always stays at 0%. In my ftp logs i can see the plugin connecting and continuously transferring the files, but in the pop-up window i still have 0% and timeouts .. retrying. And everytime it retries, the plugin logs into the ftp once more.
    I hope i made it more clear than the OP.

    Regards
    Andy

Viewing 3 replies - 1 through 3 (of 3 total)