‘WordPress FAQs’ Category

The “More” Tag on a WordPress Page

31
responses

Nathan Rice wrote about WordPress’s ability to make any page a homepage. One problem I ran into using the technique of pages was the inability to use the <!–more–> tag to display partial posts. Apparently this is default behavior (for good reason) on pages. However, when using Nathan’s technique, I found myself in a unique situation where I only wanted to show a partial post (on a page) if the post was making use of the <!–more–> tag (apparently, I’m not alone). The technique is rather simple. Simply declare a variable named $more as a global and set it to false right before showing your content. If you wish to resume normal behavior after the content is shown, simply set the variable back to true. <?php global $more; $more = false; ?> <?php the_content('Continue Reading'); ?> <?php $more = true; ?>

[Continue Reading...]

Reduce the Size of Your WordPress Plugin Footprint

19
responses

For each WordPress plugin you install, you are adding to the bandwidth/server overhead of your site. As a plugin author, there are some simple steps to take to reduce the footprint of your plugin (whether it be helping with server load or conserving bandwidth), even if your plugin still requires a lot of code. Break Out Admin Panels Into Separate Files Even for simple plugins, adding admin panels can easily balloon a plugin’s file size. A simple, yet effective technique, is to copy the code used for the admin panel to a separate file and simply provide an include in the function that loads the admin panel. For example, say you load in your admin panel using this code: add_options_page(‘Plugin Name’, ‘Plugin Name’, 10, basename(__FILE__), ‘printAdminPage’); The function printAdminPage is going to be the function that loads the admin panel. Within this function you could have: function printAdminPage() { include […]

[Continue Reading...]

Listing Your Plugin at the WordPress.org Plugin Directory

50
responses

With the WordPress Plugin Competition 2.0 in full swing, some plugin authors may want to have their plugin listed at the official WordPress.org Plugin Directory. Within this post I will go over the steps necessary to get your plugin hosted by WordPress. This tutorial is for Windows users, but I will link to other tutorials as they become available based on other operating systems. The WordPress directory uses Subversion, which won’t be covered in detail here (you don’t need to know Subversion to follow this tutorial). The tutorial covers adding a plugin I wrote called Feed Styler into the plugin directory. I apologize in advance for the plug, but I wanted to provide a real-world step-by-step example of adding a real plugin. 1. Get a WordPress.org Account Get over to the WordPress support page and register as a user. You will need to be registered in order to list your […]

[Continue Reading...]

Global Variables and the WordPress Loop

40
responses
by
on
June 6th, 2007
in
WordPress FAQs, WordPress Tips

My name is Ronald Huereca and am a new author here at WLTC. I come from a technical and business background with a degree in EET and a MS in Business Administration. I hope to share with the WTLC readers some of little intricacies of WordPress, whether it be theme or plugin related. I have written a few plugins, one called Feed Styler and the other Ajax Edit Comments. I currently write for my personal blog, the Reader Appreciation Project, and Devlounge. I am open to any and all feedback, so if there is something you’d like to see me write about, please let me know. When coding a WordPress plugin, one thing that must be quickly mastered is that of the WordPress loop and global variables. Once mastered, a plugin author can tell which global variables are accessible, and which are not. With certain WordPress Action and Filters, it’s […]

[Continue Reading...]

Radio to WordPress Migration

4
responses
by
on
April 29th, 2007
in
LinkyLoo, WordPress FAQs, WordPress Tips

Radio to WordPress Migration: Scott writes out some instructions on how to migrate from Radio Userland to WordPress in the process of finally migrating to WordPress himself. I found some resources in the WordPress wiki that needs serous TLC but Scott’s instructions might help some people. He uses a tool from Steve Hooker called backLogAllRSS but had to hack the code for things to work to his liking and he promises to share the code 😉 . Welcome to the world of WordPress, Scott!

[Continue Reading...]

Protected pages in WordPress

2
responses
by
on
April 6th, 2007
in
LinkyLoo, WordPress FAQs, WordPress Tips

User only/protected pages in WordPress provides a tutorial and code on creating pages that can be restricted to only logged in users of your blog. Works well if you have valuable content to read and want users to register on your blog before they do so. Remember, if your content is not valuable, you’ll find users just closing the browser window.

[Continue Reading...]

Install WordPress on a USB stick

17
responses
by
on
March 8th, 2007
in
HOW-TO, LinkyLoo, WordPress, WordPress FAQs

How to install WordPress on a USB stick takes you through installing and configuring XAMPP-Lite to install WordPress on a USB. Infact, you can follow the guide it on your hard disk as well.

[Continue Reading...]

WP Translations: mo and po files

9
responses
by
on
March 6th, 2007
in
General, HOW-TO, WordPress, WordPress FAQs

You can install WordPress in various different languages and it is very easy to setup these translations. You can find more information on translating WordPress into your own language on the WordPress Codex. The Codex also has a lot of information on existing translated versions of WordPress and the .mo language files. They are very simple to use. You just copy the .mo file to the wp-includes/languages folder and change/add the following line to add the filename of your language translation file define (‘WPLANG’, ”); to define (‘WPLANG’, ‘es_ES’); if your language filename is es_ES.mo I suggest making this change before you install WordPress. This is all well and good, but this post is more about dispelling some of the myth and confusion surrounding .mo files. .mo files are not human readable by their nature and cannot be edited directly. You would need to install a version of poedit on […]

[Continue Reading...]

How To: Install mod_security

14
responses
by
on
March 4th, 2007
in
HOW-TO, WordPress FAQs

mod_security is a well known web application firewall for Apache that is easy to setup and provides a fair amount of protection from web malware and can even provide some protection from comment spam. The benefits of mod_security have been discussed over and over again and with the recent unforeseen problems with WordPress (In case you have not heard about it, if you have not upgraded your WordPress 2.1.1 installation, you need to do it NOW), mod_security would have provided a level of security if it was installed. Since I had to install mod_security on one of my servers, the steps are fresh in my mind and worth a post. All of the steps below are assuming that you have some sort of a LAMP installation over which you have complete control. If you are on a shared host on LAMP, you will have to ask your provider to install […]

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php