Dive into Wordpress: Q&A
I’ve spent the last couple of days/weeks doing some work in Wordpress. Since I’ve had a lot of questions myself and spent quite some time Googling these, I could as well post them here.
How do I debug SQL-queries? Including listing all queries.
My first thought was to use the get_num_queries(), but that couldn’t be done. So I found the plugin Debug Queries
How do I make internal page links in Wordpress from one page to another?
Use the plugin RB Internal links
How do I rearrange the menu order without manipulating the #”!”## ‘priority’-field?!
Use the plugin pageMash
One of the problems with moving a page is that all the content-url:s goes to hell, so usually I make a search/replace in the db for the old url and replace to the new. There must be an easier way?
Yes, and I will most certainly use it in my next move, Velvet Blues Update URLS
Is the e-commerce plugin something worth trying? Is it easy to implement payment gateways.
Yes, it’s quite nice. Just remember it’s not very easy to customize if you still want the core intact. Haven’t tried upgrading it to a new release (since I’m up-to-date now) so I can’t say how easy that is.
I’ve made a few modifications to the core, and I’m certain I’ll have to do more of those…
How do I make an menu-object link to an external page?
Use the plugin Page Lists plus