Written by
David Artiss. Published 8 months, 3 weeks ago. Last modified 6 days, 10 hrs ago. In categories
Wordpress.
This article is provided by Kevin Moor who writes for different sites, which inter alias are working to find better registry repair.
WordPress is powered by PHP and MySQL which is an open resource blog gizmo and a publishing platform as well. WordPress have many features like plug-in architecture and a template system. Actually, WordPress has been widely by thousands of biggest websites in the World Wide Web.
For sure as computer enthusiasts, you have already come across on any feature from a blog. You may wonder how you can get this in your WordPress blog. You do not need to worry anymore because here are some tips that you will absolutely find it effective and very useful.
- Use Custom Page as your Home Page in WordPress
This is the first thing that you must have to know on how to create a custom page. There is a need for you to duplicate your page.php or you can create a new .php file and enter the following code at the very top of it: <!--?php /* Template Name: WPBeginnerT1 */ ?-->.You may change the name of the template and can even change the style on the page depending on your preference. Just go to your WordPress admin panel and choose your desired template. You will then have to publish this page and go to Settings and select Reading in the admin panel. Choose the page to be your homepage and you can now have a Custom Home Page. - Create a Page that Displays Random Posts
For sure you have seen this cool feature somewhere on web site, right? Want to try this cool feature for your site? Simply paste the following code on your custom page template: <?php
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<?php endwhile;
endif; ?> - Display External RSS Feed on Your Site
Have you noticed bloggers who display their blogs on other’s web site? Do you want to try it too, to earn extra traffic on your website? To do this, just paste the following code in your theme:<?php include_once(ABSPATH.WPINC.'/feed.php');
$rss = fetch_feed('http://feeds.feedburner.com/wpbeginner');
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
?>
<ul>
<?php if ($maxitems == 0) echo '<li>No items.</li>';
else
// Loop through each feed item and display each item as a hyperlink.
foreach ( $rss_items as $item ) : ?>
<li>
<a href='<?php echo $item->get_permalink(); ?>'
title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
<?php echo $item->get_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
These tips will surely help you. Just remember the tips and for sure your success is within reach.


Written by
David Artiss. Published 10 months, 2 weeks ago. In categories
Web Development,
Wordpress.
WordPress have given some initial details
of the plans for WordPress 3.2.
Rather than adding lots of new features, this release is going to concentrate on speed improvements and restricting the WordPress minimum requirements (this will allow existing code to be removed and will make adding code in future easier).
The requirements changing are…
- PHP 5.2.4 required – WordPress will simply be dropping support for PHP 4 (i.e. there won’t be very many new PHP 5 features added)
- MySQL 5 Required – like above, WordPress will simply be dropping support for MySQL 4
- Internet Explorer 6 – no more fancy IE6-only hacks. WordPress will be officially discontinuing support for IE6 and instead providing a “use a real browser” nag screen (something this site already has installed)
With support for long-outdated technologies being dropped, they promise this will be the fastest and lightest WordPress in quite some time. To this end they will also be focussing on speed improvements all around, including (but certainly not limited to) the Dashboard and admin menu.
Two further announced changes are…
- New Fullscreen Editor - a new fullscreen editor that’s “more beautiful, more useful, and simpler.”
- Better Upgrades – only changed files will be upgraded in future. Yay!
WordPress have also promised faster release cycles in future (concentrating on what’s promised and not adding further changes later on).
Certainly, I’m excited by this 


Written by
David Artiss. Published 1 year, 2 months ago. Last modified 6 days, 10 hrs ago. In categories
Wordpress.
I’m just finished converting my plugin pages to use my new WP README Parser plugin. However, I had a nagging feeling that I might have missed, at the very least, 1. But how can I easily tell without going through them all one-by-one?
Well, their length is a give-away as instead of pages of text, there’s now a single call to my plugin. A quick bit of SQL will show the length of each post and/or page in characters, allowing me to see if any of the original versions still exist.
Here is an example using standard table naming and will list the details of pages…
SELECT ID, post_title, guid, length(post_content) AS 'Post Length'
FROM `wp_posts`
WHERE post_type = 'page'
AND post_status <> 'draft'
AND post_status <> 'trash'
ORDER BY length(post_content)
That 3rd line can be modified to WHERE post_type = 'post' for posts, or combined with the original to list both posts and pages.
Otherwise, it simply lists the ID, title and URL for each page as well as the character length of the page content. It excludes drafts and anything in the trash. The final list is sequenced by the length of the page.
Not sure if this is useful to anyone, but just in case….!

