4
Contributors
4
Replies
40
Views
4 Years
Discussion Span
Last Post by diafol
0

I'm not really sure what you're asking, however since any content that is displayed to the browser by PHP is HTML, you would create a link as you would in HTML.

So it would be <a href = "/LINK.php" > Donate </a>

0

Am I to assume that you're using GETTEXT for translation of the strings with the __(...) format?

You question is difficult to answer as it's not clear what function you're using to create the link from the array. If it is a custom function rather than something like a built-in Wordpress function, then you can edit it freely, e.g.

$options[] = array( 'title' => __('Donate to the theme developers', 'default'),
                'desc'  => __('Note :Donate to the Developers of this theme, Donate any amount to keep the themes free '  , 'default'),
                'id'    => '',
                'std'   => '',
                'type'  => 'sep',
                'label' => __('Donate')
                );

Having said that, I can't think of a function that would not have this type of item in the array as it seems integral to me.

Could you give more info?

0

It looks like you are using WORDPRESS I may be wrong
I copied your code and added link directly using (<a href="">) and it showed me a link

<?php $options = array( 'title' => __('Donate to the theme developers', 'default'),
   'desc'  => __('Note :Donate to the Developers of this theme, <a href="Donate">Donate</a> any amount to keep the themes free '  , 'default'),
                    'id'    => '',
                    'std'   => '',
                    'type'  => 'sep');
                    print_r($options);?>

May be this may help

Edited by code_rum

0

Doh! now I see - I thought the array was used to generate a link - not that the OP needed to create a link within one of the strings.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.