Search the Wiki

Viewing 41 to 50 of 337 items

Modifying queries with pre_get_posts

Written by Remi Corson. you can for example query only posts from a specific type and with a custom meta field key equal to a determined value. In the code below, we are targeting only custom post type called “portfolio” where meta key “project_type” is set to “design”, that’s a typical query that can be  Full Article…

0

Gravity Forms Notification Popup

As seen here: https://anythinggraphic.net/gravity-forms-notification-popup/ Gravity Forms is by far one of the most popular, user friendly, easy to use form plugins for WordPress. With its many hooks and filters it is easy for developers to make it do pretty much anything. I was working on a small website development project for the CO2 Coalition. The design  Full Article…

0

Using Google Spreadsheets as a CMS with PHP

As seen here: http://elikirk.com/using-google-spreadsheets-as-a-cms-with-php/ Setup a Published Google Spreadsheet Create a Google spreadsheet, then fill in the data in your spreadsheet with an identifier in one column and the content in the next column. Next, we need to publish the content. Note: This is more than just “Sharing” the spreadsheet. When you to this, your  Full Article…

0

Remove a category from the front-page.php

The correct way to do this is to make use of pre_get_posts which change the query vars just before the main query is executed. Here is an example from the codex to exclude categories from the home page/blog page. For a full list of available parameters and values that you can use with pre_get_posts, visit  Full Article…

0

Extract a zip file on a web server

Issue Many applications come pre-packaged in a compressed ZIP or TAR file. Instead of unpacking these files on your local computer and then uploading the many files via FTP you can upload the compressed file and extract the files directly on the server to save you time. Unfortunately Plesk doesn’t have a facility to do this  Full Article…

0

WordPress: Custom has_embed function

Taken from the great t31os! Recently someone on the WordPress forums asked if there was an easy way to determine if a post has any content embedded and if so, a link could be provided to indicate the visitor should click it to see the full post where the embedded content is available. The well  Full Article…

0

Stuck with not way to log out of WordPress?

Simply add this onto the end of the website domain: /wp-login.php?action=logout Note: Because this url doesn’t have a nonce attached to it, the user will be asked if they are sure they want to logout before logging them out.

0