Posts Tagged ‘Wordpress’

 

Get the URL of the current page or post with PHP in WordPress

Saturday, December 10th, 2011

This ia a very quick note on the right way to get the URL of the current page or post with PHP in your WordPress template:

<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>

This will work for both posts and pages and outside the loop. I am using this for things like social media sharing buttons for example. Use it anywhere in your WordPress template to get the URL. Use the_permalink() only for posts and within the loop!

Hope this helps someone else wondering why the_permalink() is displaying abnormally when used outside the loop and for pages :)

Benchmark Nginx and Varnish for a WordPress Site

Monday, November 7th, 2011

This is a post about benchmarking nginx and varnish in my little series of getting the most performance for your buck, running nginx with varnish, apc and memcache for a WordPress website on a small VPS with 128MB RAM.

Continue reading “Benchmark Nginx and Varnish for a WordPress Site” »

Install Nginx with APC, Varnish, WordPress and W3 Cache on a 128MB VPS

Wednesday, October 26th, 2011

Following on from me trying to fit a WordPress install on a 128MB VPS while not sacrificing performance; I give you my rather comprehensive tutorial on how to install nginx with apc (php opt-code cache), varnish (caching proxy), wordpress and w3 cache.

Continue reading “Install Nginx with APC, Varnish, WordPress and W3 Cache on a 128MB VPS” »

Testing Nginx with APC, Varnish, WordPress and W3 Cache on a 128MB VPS

Thursday, July 14th, 2011

Finally got a bit of time (OK, I have forced myself to take some time) to get my VPS WordPress dream config sorted out and wrap it up in a handy bash script so that I can roll it out across my clients websites easily.

After following various tutorials and picking certain peoples brains, I think I finally have arrived at the bees knees as they say (or do they?)!

Continue reading “Testing Nginx with APC, Varnish, WordPress and W3 Cache on a 128MB VPS” »

Use your Facebook presence effectively

Thursday, January 20th, 2011

Chances are that you only created a standard Facebook account to promote your band or business, which is bad! Now read on and find out why…

Continue reading “Use your Facebook presence effectively” »

New and Improved WordPress 2.0.1

Thursday, February 9th, 2006

I’ve finally gotten around to updating this weblog to WordPress 2.0.1 and am happy to report that everything is working :-D Also new is the excellent AJAX-ed Shoutbox by Andrew Sutherland (Wordspew), and CaptCha! is finally working. Meaning: You can now post comments again!!!

Although 2.0.1 was hailed as a major improvement, I fail to see it. But then again I don’t hack around the backend much, so I just take the coders word for it and enjoy a stable WordPress Blog. Most of the old plug-ins are working fine though I updated most now anyway to warrant the “new and improved” headline.

All in all I still cannot fault WordPress as my blog engine of choice and am looking forward to the new AJAX-ed / Web 2.0 improvements currently planned. OK, it’s buzzword hype but some features and functions like the shoutbox or usability aiding layout improvements make punters happy. I’m playing around with a lot of the cool new toys thesedays to help redesign our companies web applications.

Technorati Tags:
| | |

WordPress Forum Integration

Tuesday, November 1st, 2005

If you would like to integrate a forum with your WordPress install like they have on wordpress.org/support/ than point your browser to the miniBB + WordPress integration post. Continue reading “WordPress Forum Integration” »