In what part of the WordPress core does the users table and usermeta table get joined?

I’m not 100% what you are asking, it seems like several questions? But here goes: $meta_value = get_user_meta($user_id, $key, $single); For example: $first_name = get_user_meta($user_id, ‘first_name’, true); As for adding hooks I think this answer might be what you are looking for? How To Add Custom Form Fields To The User Profile Page? UPDATE Based … Read more

Need help restoring my WordPress blog

Have you tried removing the wp-cache folder? I had a bad update of a different plugin once and simply “uninstalling” it by removing it from the wp-content/plugins folder allowed things to run normally and I installed an older version of the plugin.

What is this in my tables

It’s definitely from a plugin, unless you gave your WordPress install a prefix of “atpp_”. Assuming you do not have the plugin active, you can safely remove it.

Display SQL that wordpress is running

You can use any one of these filters from /wp-includes/query.php posts_where_request posts_groupby_request posts_join_request posts_orderby_request posts_distinct_request posts_fields_request post_limits_request You can print certain parts of the query to the screen to see what’s going on under the hood. For instance, you can add this to your functions file: add_filter(‘posts_where_request’, ‘foo_bar’, 1, 10); function foo_bar($where){ print_r($where); return $where; … Read more

Adding Custom Forms

If I were doing it this is how I’d do it: I would be to use a plugin such as cFormsII (free), Gravity Forms (Commercial), or several others to store the data in the database. Both the plugins I mentioned allow you to export the data which is great for a guest list. For the … Read more

Moving online website to MAMP or dumb idea?

There are some awesome resources online to help you with this process. Good for you for setting up a local development environment. I think you will find it to be an awesome change to your workflow, but be prepared for some trial and error in getting it right. First of all, there is an excellent … Read more