thanks for the help guys.. I will stick to what I used to do..
thank you for the help guys.. what about this for (custom fields and static variable)
<?php $variable = get_post_meta( $post->ID, "sample", true); printf( __( '%s', 'mytheme' ), $variable); $variable = "example"; printf( __( '%s', 'mytheme' ), $variable); ?>
for language localization.. is that ok? I want to translate the_title() to other language..
I’m confused on this, are these code’s acceptable? I want a language localization ready code..
<?php printf( __( '%1s', 'mytheme' ), the_title()); ?> <?php printf( __( '%2s', 'mytheme' ), the_content()); ?>
or prefer to write simple code like this
<?php the_title(); the_content(); ?>
I am using the 2nd codes but I want to use the 1st, any thoughts?
thanks jonathan.. I reset the php.ini file and all works fine now..
I already check that part but none of them work.. I search through google but can’t find any solution to it..
I just updated to latest WordPress version (3.7) and when I click the button “Update Now” the installation failed and it says..
Downloading update from http://wordpress.org/wordpress-3.7-no-content.zip… Warning: unlink(C:\Users\Mark\AppData\Local\Temp/wordpress-32.tmp): Permission denied in D:\xampp\htdocs\THEMES\Example\WordPress\wp-admin\includes\file.php on line 503 Download failed.: Could not resolve host: wordpress.org; Exec format error Installation Failed
anyone had this error? this is the first time I saw this error when updating to latest version of WP.. I am updating the WordPress in my localhost..