background preloader

WordPress

Facebook Twitter

Backing Up Your Database " WordPress Codex. Languages: English • 日本語 • Português do Brasil • Русский • ไทย • 中文(简体) • (Add your language) It is strongly recommended that you backup your database at regular intervals and before an upgrade. Restoring your database from backup is then possible if something goes wrong. Backup using cPanel X cPanel is a popular control panel used by many web host. There is no need to unzip this file to restore it. Using phpMyAdmin phpMyAdmin is the name of the program used to manipulate your database. Information below has been tried and tested using phpMyAdmin versions 2.5.3, 2.5.7-pl1, and 2.6.1-pl3 running on Unix.

Detailed options are listed below, though in most cases you will be fine with the default export options. Backup Process with phpMyAdmin Log into phpMyAdmin on your serverFrom the main login screen, select 'Databases' (You may not need to do this step) Now click the name of your database - or your WordPress database if you have several databases. It doesn't matter too much what you check here. Gravity. Equilibrium Installation. Installation First To get everything to display correctly, you’ll need open the index.php and look for the commented area which says “Edit Below”.

Below that, you’ll see this: Simply change the ID number to reflect whichever category you want to use for the Featured section. Repeat this step twice, as there will be two more lines you need to edit. “Edit Below 2″ & “Edit Below 3″. Second To get images to show on the front page – before you save a post, scroll towards the bottom of the editor pane and enter the value “image” in the “Key” field then enter the URL of the image in the “Value” field. The dimensions of Featured images are: Width 303px – Height 231px The dimensions of Latest Post images are: Width 162px – Height 118px Done.

Backups. Languages: English • Български • Español • Français • Italiano • 日本語 • Português do Brasil • Русский • 中文(简体) • (Add your language) Note: Want to skip the hard stuff? Skip to Automated Solutions such as WordPress Plugins for backups. Your WordPress database contains every post, every comment and every link you have on your blog. If your database gets erased or corrupted, you stand to lose everything you have written. There are many reasons why this could happen and not all are things you can control. With a proper backup of your WordPress database and files, you can quickly restore things back to normal.

Instructions to back up your WordPress site include: In addition, support is provided online at the WordPress Support Forum to help you through the process. Site backups are essential because problems inevitably occur and you need to be in a position to take action when disaster strikes. Backup Questions Back up your database regularly, and always before an upgrade. Yes. Yes. Yes. Plesk cPanel. BuddyPress » A Wordpress MU Based Social Network Platform. Weblog Tools Collection ‽ Blog Archive ‽ How to Only Retrieve Posts With Custom Fields. One question I come across a lot regarding custom fields is how to only retrieve posts based on a custom field. For example, if a post has a custom field of “MyData”, someone might want to only retrieve that particular post.

The WordPress Codex has a technique for retrieving posts based on custom fields, which consists of writing your own query and going through the results. The technique in the Codex is good, but I’ve found a re-usable way one can retrieve only posts with certain custom fields. The technique I use makes use of two custom functions placed in a theme’s “functions.php” and a custom WordPress Loop. Let’s get started — The “functions.php” file First, let’s place the two custom functions in the “functions.php” file. Here are the two functions below: The function “get_custom_field_posts_join” makes use of an advanced WordPress filter called “posts_join“. The function “get_custom_field_posts_group” makes use of another advanced WordPress filter called “posts_group“. <? <? Conclusion. Weblog Tools Collection » Blog Archive » Define Your Own WordPress Loop Using WP_Query. We all know what the WordPress Loop is right?

If not, there are many great tutorials around the web that explain the WordPress Loop. One of the easiest ways to navigate and manipulate the loop is to use the function called query_posts. Nathan Rice calls it a WordPress developers best friend. When you use query_posts, however, you risk the following: Potential to interfere with plugins which make use of the Loop.Potential to invalidate WordPress conditional tags.Having to deal with resetting, rewinding, offsetting… I say skip query_posts.

Creating Your Own Loop With WP_Query The first step is to instantiate your own variable using the WP_Query class. What we’ll be doing in this example is creating a common feature on blogs, which is to display a list of the recent articles. <? All I’ve done in the above code is defined a variable named recentPosts and instantiated an instance of WP_Query. I then used a method of WP_Query to start a query (pretty much the same thing as using query_posts). <? <? WordPress MU › Home.