How do I add a new string to a .po or .pot file?
I am using http://wordpress.org/extend/plugins/codestyling-localization/ Give it a chance i suggest 🙂
I am using http://wordpress.org/extend/plugins/codestyling-localization/ Give it a chance i suggest 🙂
Internationalization and localization (commonly abbreviated as i18n and l10n respectively) are terms used to describe the effort to make WordPress (and other such projects) available in languages other than English, for people from different locales, who use different dialects and local preferences. __() is used when the message is passed as an argument to another … Read more
That may be normal behavior, depending on how exactly you’re using is_front_page in your functions file. If you use it inside the global scope of functions.php, it will not work. Why? Because WordPress loads functions.php before the $wp_query object has been set up with the current page. is_front_page is a wrapper around around $wp_query->is_front_page(), and … Read more
There are lots of archives in WordPress. Tag archives, date archives, category archives, term archives, author archives. Which archive do you mean? You could start by trying the Taxonomy Images plugin http://wordpress.org/extend/plugins/taxonomy-images/
In the current WordPress version this is not possible, unless you hard write some JS code to dynamically update the customizer panel with your values. I’ve opened a ticket to update menu locations when switching navigation style, check out it.
For a function that enqueues scripts, the action hook you use should actually be “wp_enqueue_scripts” for the front of the site, and “admin_enqueue_scripts” for the admin side of things. This is the proper time to enqueue scripts. While you can technically do it anytime before wp_head, this is the best place because it’s pretty much … Read more
The function with the add_theme_support( ‘post-thumbnails’ ); wasn’t being called for some reason. Once I fixed that, everything works now.
I would suggest that you flip the question to What plugin is good for posting code?. You can only do so much with <pre> and <code> HTML tags. I post code snippets on my blog all the time using the WP-Syntax plugin. Here’s a nice working example: A WordPress Blog Post with PHP, TXT and … Read more
You could also write your own simple get_template_part alias function: The following allows 3 subfolders for template parts that sit in a theme root folder named devices. <?php // STYLESHEETS function print_device_styles( $client=”desktop” ) { $client = apply_filters( ‘set_theme_client’, $client ); wp_enqueue_style( $client.’-css’ ); } add_action( ‘wp_head’, ‘print_device_styles’, 11 ); // TEMPLATE PARTS function get_device_template_part( … Read more
You are most likely to save the url of the image and not the whole image tag, and there is a great tutorial that explains just how to use the media uploader in your own theme or plugin: http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ update In case of using this in a meta box you will need the post id … Read more