The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Appending the value of bloginfo(‘description’) to a link

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #29279

    Yeah, the topic probably doesn’t even sound right. This looks long, but I just wanted to explain it as much as I can. I think the fix for this problem literally takes like 1 minute.

    I’m trying to make it so that whatever is in the WordPress function bloginfo(‘description’); gets added to the end of this link $whaturl=""; which is inside a variable.

    bloginfo(‘description’); comes out to, let’s say csstricks when you call it. I need to make it so csstricks gets added to the end of the link in the $whaturl variable. So, ultimately, I’m looking to get the link: … =csstricks. The reason this has to be dynamic is because I’m running the same sidebar which has the feedburner plain text feed count on several different blogs. I’m making each blog’s description the name that would come after uri= in the link so it would pull from that specific blog’s feedburner statistics. So, for instance, the description of another blog would be phptricks and there would be feed statistics for that feed at ttps:// … =phptricks.

    I’m pretty sure it’s really easy and I’m barely missing it. I keep trying it but it just prints csstricks whenever I call bloginfo(‘description’); but I need to add it to the link instead of displaying it on the page. I’m newb at php :(

    Here’s the code that gets the plain text feedcount (remember, I’m trying to get the value of bloginfo(‘description’); appended to the end of $whaturl, ex: … =csstricks):



    And I call that with:


    Which I need to come out to just a number.

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.