Forums

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

Home Forums Back End Adding a variable to a link that’s inside a variable Re: Adding a variable to a link that’s inside a variable

#78207
cmoist
Member

The problem you’re facing, I believe, is that bloginfo(‘description’) is echoing the value. Try get_bloginfo(‘description’). It just returns the value, so you can use it within your PHP. Here is the WP page: Function Reference/get bloginfo

To concatenate, or add it to the $whaturl variable, do something like the below:

Code: