WordPress has built-in automatic update functions, users can upgrade WordPress automatically by clicking on a couple buttons. FTP hostname, username and password will be required by WordPress when you firstly use the functionality. Today the tactic we tell make WordPress remember you FTP information to get you rid of annoying. All you need to do [...]
To achieve this recipe, simply paste the following code on the functions.php file from your theme. In this example, posts with IDs 8 and 15 will be excluded from your blog’s search results: function SearchFilter($query) { if ($query->is_search) { $query->set('cat','8,15'); } return $query; } add_filter('pre_get_posts','SearchFilter');
Function code here! <?php $numlinks = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links WHERE link_visible = 'Y'"); if (0 < $numlinks) $numlinks = number_format($numlinks); echo $numlinks; ?> You may find it useful in some case!
There are a time we need to put some URL on our WordPress content and make this content clickable. We need to added the link manually or using WYSIWG menu. And this is real pain if we must do this each time we add URL. Did you know that, WordPress offering functions to make this [...]
This new is from wordpress.org. Practice makes perfect is what they say about things, but sometimes it’s not. In this case it is not practice but refinement, and then more testing. You can help WordPress! Now: 3.1, beta 2 is here; needs testing. But! Remember this: Only install on test sites, as YMMV. The second [...]
WordPress developers are committed to enabling WordPress to run on as many hosting circumstances as possible and making users to arbitrarily select them. However, as time goes by, the web hosting environment has changed a lot, in order to better function WordPress, the developers make up their minds to change their strategy, say, WordPress would [...]
Custom admin username, admin display name, blog description, default category, and blog URL (I have a tendency of installing the WordPress files in their own directory separate from the blog’s home page) I’ve never been a huge fan of the phone home feature, so I’ve removed the blog address when checking for updates Although security [...]
Here is the methods: 1. Login to WordPress backend >> Appearance >> Editor 2. Find single.php and open it, go and look for the code below: <?php the_content(); ?> 3. Continue to add the following code: <p>ps <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></p> <p>ps <a href="<?php the_permalink() ?>"><?php the_permalink() ?></a></p> 4. Done.
It is believed that some pieces of information, entry amount, comment amount, blog live date, etc, are preferred by many blog masters to display on their own blogs, actually, we can realize this by copying and pasting the following codes onto corresponding positions, and then modify the layouts as wished. <h3>Site Statistics</h3> entry amount:<?php $count_posts [...]
When the error occurs to the blog backend, when clicking on "Comments", the following error hints would appear on the right column: Fatal error: Allowed memory size of 33554432 bytes exhausted(tried to allocate 35 bytes) in /hermes/bosweb/web117/b1170/ detailed installation path/wp-content/themes/poetry/functions.php on line 357 Solutions: 1. Change WordPress configuration file. As the easiest way, you can [...]
Recent Comments