Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8433473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:23:43+00:00 2026-06-10T06:23:43+00:00

im having a bit of a problem with php bloginfo ive never had before

  • 0

im having a bit of a problem with php bloginfo ive never had before with with wordpress….not sure how to go about it.

normally i use <?php bloginfo('template_directory'); ?>/rest of link 4 img here

but for some reason now it doesn’t work. when i view source, its not echoing out the link like its supposed to and it just comes out as "src="/images/pic name here"

ive tried using get_bloginfo('stylesheet_directory'); etc

i even saw some post here on SO that tried to somehow concatenate the get_bloginfo with the link like this

And again, the weird thing is that i define my external assets the same way.
like this for example

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/scripts_n_css/css/default.css" type="text/css" media="screen" />

any ideas as to whats going on? Thanks in advanced.

EDIT*** So if you take a look at this site im working on, http://www.islandlivingpatio.com/?page_id=48 the images dont load up. When i inspect with FireBug, it says “failed to load given url”
but the thing works on my local host.

This is what the sites image and the url it goes to look like.

<a href="<?php echo bloginfo('url');?>/?page_id=775"><img src="<?php bloginfo("template_directory");?>/images/Lynx.gif" alt="castandtubular"/></a>

And again, theY DO work on my local machine. When you click that images alt tag(since its the only thing showing up” then the next page also fails to load the images.

Any ideas as to whats going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:23:45+00:00Added an answer on June 10, 2026 at 6:23 am

    Try using get_bloginfo('template_directory') like so:

    <img src="<?php get_bloginfo('template_directory'); ?>/images/your-img-here.jpg" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a bit of a problem, Due to the source-control set-up we use, each
So i'm having a bit of a problem with having my PHP run a
I am having problem setting a variable in PHP for multiple use into if
Hello having a bit of problem retrieving a value so i might use it.
I'm having a bit problem with reading argument value in haskell: I'm having options
Having a bit of a problem creating an instance of an object. Bear in
I'm having a bit of a problem, drawing text on an image. When I'm
I'm having a bit of a problem using FieldOffset correctly with arrays. The code
I'm having a bit of a problem with getting JBoss working across networks. As
I'm having a bit of a problem figuring out how to get the X/Y

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.