Sponsor
Blogroll
Meta
Author Archives: Weston Deboer
Using Custom Fields in Comments
For a private wordpress site I have been using a custom comments table. It just has an added row where people rate the business. Everything is included in the comments table where I don’t need to make a custom table … Continue reading
Posted in PHP, Wordpress
3 Comments
Removing first image from the_content
I recently had a client want to put the_title below the first image. Without making it to complicated by adding custom fields or anything like that. I thought that I could grab the first image from the content with catch_that_image … Continue reading
Add Custom Field to Register Form
this is gonna be a quick one, cause I need to finish website. But I got this working today. This is for function.php file or in a plugin will work. This will add two forms to the register page in … Continue reading
Posted in Wordpress
24 Comments
Why Include a Logout Button?
So I am making a site where users can create an account on this site. It is not an important site where multiple users are going to be using the site, where there is a need for a logout button. … Continue reading
Check If Logged in WordPress
I put this file just below the header.php in my themes for sites that require the user to be logged in to do anything <?php if (is_user_logged_in()){ echo “Welcome, registered user!”; } else { echo “Welcome, visitor!”; }; ?>
Posted in Wordpress
Leave a comment
Page Last Edited By….
I wanted to show when a post was last edited and who it was last edited by. If there s a function for this, I don’t know, but I found this on the wordpress forums and it works great. <?php … Continue reading
Posted in PHP, Wordpress
Leave a comment
Putting the_content into PHP
With this code you have the ability to remove images or remove the text and only show the images, or a flash embed code, with preg replace or however you want to. <?php $content = get_the_content() ?> Below will remove … Continue reading
Posted in PHP, Wordpress
Leave a comment
When Upgrading WordPress Always Backup
This happened to me today, And thank the gods I randomly had a backup of the custom theme folder. I had updated some function calls to make it load a bit faster, and I lost those when I decided to … Continue reading
Client Tip, Do the small things first
I work with a lot of people and I am not the best person to talk to. I usually work best when the client sends me a list of things to do. So I can just check them off. So … Continue reading
Idea; Use WordPress as RSVP System
So I had a friend who was looking for a simple to use RSVP system. I spent half today looking into ways to use custom fields as a way to track names and emails. Thats a good way if you … Continue reading →