WordPress.org

Ready to get started?Download WordPress

Forums

Sharing Images (2 posts)

  1. whatadewitt
    Member
    Posted 3 years ago #

    Hi,

    I have a couple wordpress installs running on my server. One install is running a sports league website, while another is running one of the league's teams websites.

    I want to be able to share some images across the site, but what I like is that on the league site, I have the images being resized and so when I want to display an image at 75x75 it's very easy, but I also want to display the same image on my team site...

    Is this at all possible to do? The code I am currently using is

    wp_get_attachment_image_src(get_attachment_id_from_src($result->home_logo), 'team-logo')

    Where result->home_logo would be my image name, and using team-logo is getting it at the proper size. Is there any way for me to share these images?

    Thank you,

    --d

  2. whatadewitt
    Member
    Posted 3 years ago #

    I've made SOME progress... I'm able to get the ID out of 1 database table, but I am using wp_get_attachment_image_src, which is pointing to the current database, where the image doesn't exist...

    Can anyone help me out?

    Thanks!

    --d

Topic Closed

This topic has been closed to new replies.

About this Topic