WP Smith

Creating WordPress & Genesis Websites Since 2010

  • Home
  • About
  • Services
  • Blog
  • Contact

Aug 27 2015

Update: New Long-Overdue Site

Hello all! I have been away for a long time, sadly and regretfully not doing WordPress as much as I'd like. Instead I was working with SharePoint, which was not nearly as exciting, fun, and flexible that I would have liked. So, now, while I'd like to do more, here is a site that I am definitely more excited about and my first posts back will be all about what I did to create my site.

Written by Travis Smith · Categorized: Company Update

Apr 09 2014

Enabling & Installing Posts to Posts When a New Blog Is Created

The other day I came across an issue where Posts to Posts requires an administrator or someone with `manage_options` capability in order to install Posts to Posts table on a new blog creation. This does not work if all new sites create the default user as an Editor, and you need to immediately make Posts to Posts available for immediate use.

So here is the code that I used in order to make this possible.

<?php
add_action( 'wpmu_new_blog', 'wps_install_p2p', 5, 6 );
/**
* Create P2P table on site creation regardless of admin presence.
*
* @see P2P_Tools_Page::maybe_install()
* @author Travis Smith <wpsmith.net>
*
* @param int $blog_id Blog ID.
* @param int $user_id User ID.
* @param string $domain Domain.
* @param string $path Path to domain.
* @param int $site_id Site ID.
* @param array $meta Site Meta.
*
*/
function wps_install_p2p( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
switch_to_blog( $blog_id );
$current_ver = get_option( 'p2p_storage' );
if ( $current_ver == P2P_Storage::$version ) {
return;
}
P2P_Storage::install();
update_option( 'p2p_storage', P2P_Storage::$version );
restore_current_blog();
}
view raw p2p-install.php hosted with ❤ by GitHub

Written by Travis Smith · Categorized: WordPress

Mar 08 2014

Setting Up a Local Environment via XAMPP: Installing WordPress via Download

4. Download WordPress

Go to wordpress.org and download the latest build of WordPress. Go to the htdocs folder (where you installed the XAMPP), extract the wordpress.zip to a new folder (eg. mywordpress).

5. Run the Famous WordPress 5-minute Installation (install.php)

With your browser, go to http://localhost/mywordpress/wp-admin/install.php or http://localhost:8080/mywordpress/wp-admin/install.php, click Create a Configuration File and click Let's go! Fill out Database Name (eg., wordpress), User Name (needs to be root), Password, Database Host, and Table Prefix (it is always a best practice to change the default wp_ prefix to something else). Be sure the User Name is the same as your mySQL username, "root". Then click Run the Install, and follow the instructions to install WordPress. Fill in the Site Title, Username, Password twice, and email. Then click Install, and then Login.

Written by Travis Smith · Categorized: WordPress

Mar 07 2014

Setting Up a Local Environment via XAMPP: Security

3. Setup XAMPP Security

Go back to localhost or localhost:8080 in your web browser. Click on security and it will open a new window/tab to http://localhost/security/index.php or http://localhost:8080/security/index.php.

Then click on the link: http://localhost/security/xamppsecurity.php. This will allow you to change your mySQL password and .htaccess password. Since this is typically my sandbox for breaking things and developing code, I just enter a mySQL password. Click password changing and you will receive a message: The root password was successfully changed. Please restart MYSQL for loading these changes! Then close the window/tab.

Written by Travis Smith · Categorized: WordPress

Mar 06 2014

Setting Up a Local Environment via XAMPP: Error with Port 80 & Skype

If when you install it, port 80 is busy. This could be because of another program (like Skype) or your corporate network. So, if you have Skype installed, I recommend changing Skype's default port. It simply makes everything easier.

Open Tools > Options
Skype Options

Click Advanced
Options Screen

Click on Connection
Advanced Settings

Uncheck "Use port 80 and 443 as alternatives for incoming connections".
"Advanced Connection"/>
"Advanced Connection Remove port 80"/>

Click Save
Save Advanced Settings

Using a Different Port

Written by Travis Smith · Categorized: WordPress

  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 60
  • Next Page »

Need Help?

Please let us know how we can help you!

Get Help

Recommendations

Genesis WordPress Framework
Sucuri Security
Gravity Forms
GetSoliloquy
Get Envira
Scribe SEO
BackupBuddy
WordPress Video User Manuals

Recent Posts

  • Solving WordPress 5XX Server Errors on SiteGround
  • Hiding an User in the WordPress Admin
  • Custom Rewrite Rules for Custom Post Types and Taxonomies
  • WordPress JavaScript Manager Native Functions
  • Causes of WordPress Site Performance Slowdown

About Travis

As a WordPress enthusiast, developer, and speaker, Travis writes about what he learns in WordPress trying to help other WordPress travelers, beginners and enthusiasts with tutorials, explanations, & demonstrations.

  • Twitter
  • Facebook
  • LinkedIn
  • Google+
  • RSS

Copyright © 2025 � WP Smith on Genesis on Genesis Framework � WordPress � Log in