Tag Info

New answers tagged

0

The two main contenders as best multilanguage plugins for WordPress are WPML and QTranslate. If you want a quick answer to which one comes out on top, I would say go for WPML. If you have enough time to give them a test drive, sdbloggers by all means do so and judge for yourself which one works best for your needs.


0

Custom Post Type Templates archive-{post_type}.php single-{post_type}.php archive-{post_type}.php If your custom post type were 'product', and/or query_var = "product", WordPress would look for archive-product.php to display the archive of posts. single-{post_type}.php If your custom post type were 'product', and/or query_var = "product", WordPress ...


1

You should have a look at the register_post_type page in the codex. Look at the hierarchical argument when registering your post type hierarchical (boolean) (optional) Whether the post type is hierarchical (e.g. page). Allows Parent to be specified. The 'supports' parameter should contain 'page-attributes' to show the parent select box on the ...


0

No, by default you can not add support for templates to custom post types. But there are some plugins that allow this functionality. You can use Custom Post Template or Single Post Template Plugin plugin to add template support for single posts which includes custom post types too. You can read more about it here. Can I assign a template to a custom post ...


2

You are making wrong assumption here. define('WPLANG', ''); doesn't mean "original locale of the string" or anything like that, it is taken literally as "no locale specified". And when it's nothing WP proceeds to assume default locale, which is en_US. This is why as soon as you add English translations of string they are displayed for this case. So to test ...


0

The load_theme_textdomain() function uses load_textdomain() internally. And that function offers a nice filter for debugging purposes (aside from altering the language: $plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile ); Start debugging with a quick custom plugin and check if your file exists: <?php /** Plugin ...



Top 50 recent answers are included