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 614229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:05:23+00:00 2026-05-13T18:05:23+00:00

href= <?php $zzz_stylesheet = http://127.0.0.1/www/wordpress/wp-content/themes/mytheme/style.css; echo str_replace(.css,-mytheme.css,$zzz_stylesheet); ?> works but href= <?php $zzz_stylesheet =

  • 0
href=" <?php 
$zzz_stylesheet = "http://127.0.0.1/www/wordpress/wp-content/themes/mytheme/style.css"; 
echo str_replace(".css","-mytheme.css",$zzz_stylesheet);
?>

works but

href=" <?php 
$zzz_stylesheet = bloginfo('stylesheet_url'); 
echo str_replace(".css","-mytheme.css",$zzz_stylesheet);
?>

does not work. Why?
bloginfo is a function in WordPress which returns the value I have used in first code line.

  • 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-05-13T18:05:23+00:00Added an answer on May 13, 2026 at 6:05 pm

    From WordPress’ documentation to bloginfo:

    Displays information about your blog […] This always prints a result to the browser. If you need the values for use in PHP, use get_bloginfo().

    (emphasis added)

    So: Use get_bloginfo instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

javascript: location.href(somefile.php); // successfully working with IE location.href = somefile.php; Ques 1. first code
i am trying this to pass a value to the next PHP page: $(#see_comments).attr({href:
This checks if we are on movies.php page: if (location.href.match(/movies.php/)) { // something happens
I have the following: window.setTimeout(function() { window.location.href = 'file.php'; }, 115000); How can I,
I've got a PHP array in this format: $js_data_array[] = array('href' =>$matches[1][0], //this is
Hay i have a link like this index.php?sometext=f,fsdsd,rerw,e,wewewe and when i use .attr(href) on
$(document).ready(function(){ $(a[href*='http://']:not([href*='+location.hostname+'])).attr(target,_blank); $(a[target!='_blank'][target!='_top']).live('click', function(){ $(#actualcontent).html('<center><img src=/deltasite/uploads/smallloader.gif></center>'); var url=$(this).attr(href)+'?jquery=1'; $(#actualcontent).load(url); $(#nav).load('/delta/pack_files/other/nav.php?url=' +$(this).attr(href)); window.location.hash=$(this).attr(href); return false;
Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php
I have a fancybox that ajax calls file.php to get the content to show.
location.href = /search.php?key= + encodeURIComponent(key) + &type= + type; I want to reserve the

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.