Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

AJ Troxell on "Translation function calls must NOT contain PHP variables"

$
0
0

I am newer to WP plugin development and extensive Theme development. I am using and altering a theme options sample from ThemeShaper. My problem is localization and the structure of the theme-options.php file.

I know that this is improper: esc_attr_e( $options[$input['Input']] );

But I know not how to restructure it so that it is proper, but figured it would be something like this: esc_attr_e( _n('%d', '%d', $options[$input["Input"]], 'white'), $options[$input["Input"]] ); yet all this does is fill my fields with a value of %d.

Can anyone lend me a hand on how to make this proper?


Viewing all articles
Browse latest Browse all 8245

Trending Articles