Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin territory: <head> items #18

Open
justintadlock opened this issue Jun 30, 2015 · 0 comments
Open

Plugin territory: <head> items #18

justintadlock opened this issue Jun 30, 2015 · 0 comments

Comments

@justintadlock
Copy link

The following in header.php are plugin-territory items and should be removed:

    <?php $post_description = kamoha_get_facebook_page_description(); ?>
    <?php if ( is_single() ) : ?>
        <?php $post_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'kamoha_medium' ); ?>
        <meta property="og:url" content="<?php echo post_permalink( $post->ID ); ?>" />
        <meta property="og:title" content="<?php echo str_replace( "\"", "''", html_entity_decode( get_the_title( $post->ID ), ENT_QUOTES, "UTF-8" ) ); /* decode if for hyphen etc. replace is so quotes don't interrupt the content attribute */ ?>" />
        <meta property="og:image" content="<?php echo $post_image_url[0]; ?>" />
        <link rel="image_src" href=" <?php echo $post_image_url[0]; ?> ">
        <meta property="og:description" content="<?php echo htmlentities( $post_description, ENT_QUOTES, "UTF-8" ); ?>" />
    <?php endif; ?>
    <meta name="description" content="<?php echo htmlentities( $post_description, ENT_QUOTES, "UTF-8" ); ?>">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants