Find Jobs
Hire Freelancers

547413 calling wordpress thumbnails

N/A

En curso
Publicado hace más de 12 años

N/A

Pagado a la entrega
Hi Think this should be straight forward to anyone who knows wordpress. There are 2 tasks 1. add pinterest button to single posts 2. get opengraph og:images to work without a plugin I'm manually setting up opengraph using the following but it's only calling my main image 530px530px which I think is too big so need help calling the thumbnail. In [login to view URL]: function get_fbimage() { $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '', '' ); if ( has_post_thumbnail($post->ID) ) { $fbimage = $src[0]; } else { global $post, $posts; $fbimage = ''; $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', [login to view URL]"> $post->post_content, $matches); $fbimage = $matches [1] [0]; } if(empty($fbimage)) { $fbimage = "images/[login to view URL]"; } return $fbimage; } Task is to either get this code to pull a thumb from my main post or an alternative way but I don't want to use a plugin. My blog is a simple photography site, each post has one photo and a little caption. Once accepted I will send you my theme and you can work from that. Feel free to ask any questions
ID del proyecto: 2293357

Información sobre el proyecto

Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de UNITED KINGDOM
London, United Kingdom
5,0
6
Forma de pago verificada
Miembro desde may 19, 2011

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.