Need to change image path of post depending on particular author

Posted in: Newspaper
Post count: 8

HI,

It is an new site (primefeed.in) so i get external news feeds from various sources i parse them and enter content into table the posts are also been shown as shown below
wp_xml_post (title, content, status, image, item_id)

now for particular author whose id is 2 in db i want to change the image path of the post
means
if(post_author == 2){ //author with 2 is ANI
$img_source_path=’/www/folder1/folder2/images’;
}
How can achive this which file should i edit .Please let me know

Post count: 8

Hi,

Please check the primefeed.in homepage(Latest Articles Section) All posts from author ANI have images stored /www/folder1/images/abc.jpg how to change it in code so that for all post with author_id=2 (i:e of author name ANI) can take imagesrc from /www/folder1/images/ and not from gallery .Please let me know soon. Thanks

Post count: 8
Post count: 20688

Hi,

The thumbnails that are displayed on the modules are created from the featured images set for each of the posts, it is an automatic process
https://forum.tagdiv.com/theme-thumbs/
The modules then display these thumbnails
https://www.screencast.com/t/LlzzawZt9Y
There is no condition to display thumbnails by author, or set a different path from where the thumbnails will be picked. Each post has a featured image assigned, this image will represent it on the theme modules.

Thanks

Post count: 8

Hello,

We understand that there must be no default or in bulit way to do it but if i have to custom code where should i add it.
if($this->author == 2){
echo $img1;
} else{
echo $this->get_image();
}
something like this
where is this get_image defined . can you please let me know

Post count: 20688

Hi,

The modules get the image as shown in the screenshot. Each module has a specific thumb that it displays
https://www.screencast.com/t/Vfo4HeOjg6f
This is the main function – https://www.screencast.com/t/rQxxGrqPx

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.