Profile
Achievement
 
    
                prwhitehead's Recent Snippets
- All /
 « Prev 1 Next »
what could be placed in the * {} inorder to solve a few common issues
        
        
        
            0 
        
        
            1239 
        
                    posted 13 years ago by prwhitehead
            Returns all of the custom fields (meta data) from a page / post and assigns them all to a single session array for compactness
        
        
        
            1 
        
        
            1349 
        
                    posted 14 years ago by prwhitehead
            Cache the results of your wordpress database queries for faster page generation
        
        
        
            0 
        
        
            2354 
        
                    posted 14 years ago by prwhitehead
            Dynamically get the guid of your a post from its post title (with wordpress caching)
        
        
        
            0 
        
        
            1269 
        
                    posted 14 years ago by prwhitehead
            Make sure your URL $_GET variables don't get repeated / duplicated when you are creating links / URLs dynamically.
        
        
        
            0 
        
        
            2044 
        
                    posted 14 years ago by prwhitehead
            If your page has already sent headers to the browser you cant redirect with headers('Location:' . $url);
But you can use the following:
        
        
        
            0 
        
        
            1014 
        
                    posted 14 years ago by prwhitehead
            Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
        
        
        
            0 
        
        
            1081 
        
                    posted 14 years ago by prwhitehead
            Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
        
        
        
            0 
        
        
            1589 
        
                    posted 14 years ago by prwhitehead
            To remove some of the lesser used edit post / page meta boxes:
        
        
        
            0 
        
        
            1274 
        
                    posted 14 years ago by prwhitehead
            Create a sitemap in wordpress, including posts, categories and pages just use the [sitemap] shortcode within the post content and wordpress / the function does the rest.
        
        
        
            0 
        
        
            1346 
        
                    posted 14 years ago by prwhitehead
            Create excerpts from text block from your wordpress content and add links page / post from the guid.
        
        
        
            0 
        
        
            1359 
        
                    posted 14 years ago by prwhitehead
            works in all the major browsers that support adding to bookmarks, FF, IE, Opera. Safari and Chrome dont support this, so for them, a nice message :)
        
        
        
            1 
        
        
            1522 
        
                    posted 14 years ago by prwhitehead