Category: WordPress

WordPress recovering admin password via PhpMyAdmin

Go to the database and look up the table wp_users. Scroll to your username replace the value of “user_pass” with “$1$dgce9Lop$A9.gfUeaHfPFXLraMbR.L/” This is the MD 5 hash for the password “admin” save row and now you should be able to log in using your username and with the new password…

Read More

Query for combining posts on a WordPress multisite network and displaying a custom pagnition

For a long time now I’ve been trying to combine queries from 3 different sites on a WordPress multisite on the same network. Yes all sites off the 1 network that lives on the 1 server.

Read More

Using query_posts( ) on a page for simple arguments

I wanted an easy but simple way to just edit the query on the home.php page without going into complicated paging parameters and take advantage of just manipulating WP powerful default query.

Read More

Disable and Block external URLS in WordPress.

Use the following code to block external url’s and speed up WordPress in the backend.

Read More

WordPress Migration

When moving a WordPress sit to a new domain it can get really hard as you will need to replace certain aspects of the MYSQL Database. Please follow the following steps after importing the database in your new location.   Update Post_Content with the following SQL: UPDATE wp_posts SET post_content=…

Read More

MPC Flip Book WordPress Plugin Migration problem

The MPC Flip book WordPress plugin is just awesome. Works right out of the box without any hassles.

However, we had one major problem. We could not migrate WordPress from a development server locally to a production environment. Simply looking up the links and changing it did not do the trick.

Read More

Get Page content by ID using get_page_by_title()

Use the following code to get page_content or page_excerpt amongst other thing

Read More

WordPress migrating images problem

When moving a website from local to staging, a major problem was identified. Images that were used in content pages (POSTS) in WordPress were being broke. After looking through 100’s of articles, and reading 100’s of discussions I’ve come to the conclusion that WordPress just works with Relative paths rather than absolute paths for their images.

Read More

Identify if your on the first Paginated page of home.php (default blog page)

Use this page to identify if you are on the first page of your blog pagnition.

Read More

Use this code to reduce length of excerpt

Use the following code to reduce the length of the WordPress excerpt.

Read More
© Toffy digital 2017 Powered by Toffy Digital