Em Andamento

Modification to wordpress popular posts plugin - repost

I am having some trouble modifying a plugin wordpress popular posts i installed.

It has an option to fetch thumbnails from a custom field, which i have entered as "image_facebook". But the thumbnails are not being displayed.

While checking the code i found that img src has post id instead of returning image URL.

I have narrowed down the problem to another plugin which i have installed [url removed, login to view] and while it is active I have to use "the_field ()" to fetch the custom field content instead of regular wordpress "get_post_meta" It is documented here [url removed, login to view]

I need to edit the code in the wordpress popular posts file to use the_field() function. In my theme files i am able to retrieve the Image URL via following code :-

<img src="<?php echo get_field('image_facebook'); ?>" alt="<?php the_title(); ?>" class="postImg" />

However I'm unable to find the right place in loop to add get_field.

A quick fix here will be highly appreciated.

Habilidades: PHP, Arquitetura de software, WordPress

Ver mais: wordpress resources, wordpress posts found, wordpress popular, img wordpress, find right wordpress theme, advanced resources, custom plugin wordpress, advanced custom field, fetch post, custom theme modification, wordpress popular post, find posts, custom field post wordpress, wordpress add quick edit, custom loop, wordpress fix url, repost via wordpress, wordpress plugin repost, wordpress custom field, echo fix url php, add image quick edit, popular, echo file php, php echo file, active code plugin

Acerca do Empregador:
( 47 comentários ) Lahore, Pakistan

ID do Projeto: #5128722

Premiar a:

fastworkontime1

A proposal has not yet been provided

$7 USD / hora
(4 Avaliações)
2.4