Check if a field is capitalized?
$field = ‘First Name’; if(ucwords($field) !== $field){ // not capitalized }else{ // capitalized } see ucwords()
$field = ‘First Name’; if(ucwords($field) !== $field){ // not capitalized }else{ // capitalized } see ucwords()
Use your browser’s debugger to find the applied CSS rules. Usually there are some some unclosed elements and/or some badly written CSS rules like #content * { font-size: .9em }. It’s not a WordPress problem. 🙂
OK, just to clarify your question. Your problem is with the search form not appearing in the top right corner? All I see there is a search image, but no input field. The search functionality does work on your site, eg: http://lunetours.com/?s=destination but something’s not configured properly there either, as it’s not returning any results. … Read more
Take a better look at the arguments that this functions accepts: wp_link_pages(array( ‘before’ => ‘Pages’, ‘after’ => ”, ));
You need to define the $post global variable if you want to access its ID property: function excateg($categ) { global $post; $recent = new WP_Query(“cat=$categ&showposts=1”); while($recent->have_posts()){ $recent->the_post(); $imageurl = get_post_meta($post->ID, ‘post-img’, true); } } Use it after the_post() because that function will set up that variable. Alternatively you can use the $recent->post property instead of … Read more
WP Alchemy and Advanced custom fields both support this feature already.
i think you are getting downvotes b/c your question is crazy vague. if i understood from your themeshaper post then you are trying to group all your terms alphabetically like so: A anvil apple art B bacon banana D darth vader daytime and so on. if this is the case, you can achieve it with … Read more
but get the first image, how i get the “featured image” of each of post? Use get_the_post_thumbnail(). You simply need to pass it the ID of the post; e.g.: <?php global $post; $post_thumbnail = get_the_post_thumbnail( $post->ID ); ?>
If you install Category and Taxonomy Terms Order you get a nice drag and drop interface and all you have to do to call it is to set orderby => ‘menu_order’ and you’re done, your drag and drop category changes will be instantly reflected in your category order.
Your first issue is the fact that you’re on shared hosting. The fact that 1,195 websites are using the same IP address is a dead giveaway. You’re likely running into resource limits with your hosting provider. Second is a misconception of what caching does to optimize a site. Caching helps clean up and optimize load … Read more