16,392 reputation
21754
bio website tomjn.com
location United Kingdom
age 26
visits member for 4 years, 3 months
seen 3 hours ago

I'm a fulltime WordPress Developer at Code For The People in the UK. I also build RTS AIs & attend WordPress/design conferences.

Any questions please say hello, I can normally be found in the WPSE chat ( link in the top header ).


5h
comment Transferred WordPress - PHP warnings now
As a sidenote, if your new URL and the old URL were the same length, then it would have worked with the mysql query
5h
comment Transferred WordPress - PHP warnings now
A mysql query won't do the job, as it won't deserialise the string, modify the array then redo the serialisation
5h
comment Transferred WordPress - PHP warnings now
Then you have your answer, you've done a naive search replace and corrupted all the serialised PHP structures that contain your sites URL
5h
comment Transferred WordPress - PHP warnings now
How did you search replace? Did you account for serialised PHP strings?
5h
comment using slug instead of ID in admin edit post url
How would you handle post revisions? Also why would you want this? Users shouldn't notice the URLs in the admin panel, are you trying to manually construct edit urls?
13h
comment Specify automatically the height and weight of the images
This will use the closest available size, but with add_image_size you can define a new image size that's exactly what's needed
1d
comment Show template loaded
Not if you call get_template_part
1d
comment Show template loaded
Are you referring only to files that are used for templating? Or all PHP files, even those that have no html inside them?
1d
comment Show template loaded
this might only show page.php or header.php, but not footer.php, sidebar.php, or other templates that may be loaded
Dec
14
comment Duplicating pagination on second page
You should use pre_get_posts to modify the main query, rather than discarding it and creating a new one
Dec
13
comment Repeating posts when paginating random posts
Why are you overriding taxonomy.php with a custom query when you can use taxonomy-taxonomynamegoeshere.php?
Dec
13
answered Creating a Link Text like Submit Button in Admin Page
Dec
13
answered Embed IPB forums to wordpress page
Dec
13
comment Embed IPB forums to wordpress page
The end result is probably going to involve a hefty amount of theming of IBP, which isn't something people here are likely to know about ( and isn't in the scope of this stack )
Dec
13
comment Embed IPB forums to wordpress page
I can't see anywhere that they are using WordPress on that site
Dec
12
comment Move plugin content into the_content
I edited the answer to use array() rather than [], which implies you're not using an up to date copy of PHP. But a quick chat with your hosts can fix that
Dec
12
revised Move pagination numbers above plug-ins
A `[]` style array is used here, not everybody is using a supporting version of PHP, swap for `array`
Dec
12
comment Move plugin content into the_content
@JonMitten If you have an issue with the answers, comment on them so that all can benefit
Dec
12
comment Why doesn't the WordPress Importer update posts?
Adding a hook means implementing updating, which means dealing with the maintenance and support of people such as yourself who try to use it and managing their expectations. It's simpler, easier and cheaper simply not to do it
Dec
12
comment Change theme based on window size
Can I ask why you're trying to do this? What are you trying to accomplish?