If you want to sort by title The code on the right is a individual loop you could place in wordpress. In the arguments the orderby is set to title, so posts will show alphabetically. Up and down can be set with DESC or ASC. Reorder the main loop If you want your frontpage blogroll […]
Decide who can see the content The code on the below can be used to: Show content only to members [member]visible by members[/member] Sow content only to guests [visitor]visible by visitors[/visitor] Place it in the funtions.php in your theme folder. function visitor_check_shortcode( $atts, $content = null ) { if ( ( !is_user_logged_in() && !is_null( $content […]
To develop a WordPress Multisite on a Wamp server some extra steps are needed before you can start with the famous 5 minute installation of WordPress, followed by the steps to initiate the WordPress Multisite. 1. The first step will be to define the wanted domain names to be available in your pc. These domain […]
wp test is een xml import met een variatie van gebruikers pages en posts om een thema te testen wptest.io github Wp test is useful to populate pages, posts and users with dummy data. Sometimes when working on a project you need content to see shape. wordpress plugin fakerpress fakerpress is a plugin that can […]
Plugin that lists and compares products. WooCommerce is a very nice free plugin for WordPress. WooCommerce Pud is a complementary plugin that offers two abilities: to list products and compare them. Both functionalities are not standard in WooCommerce and are not represented in the WordPress repository very well. WooCommerce Pud tops it and combines them: WooCommerce List AND Compare. […]
The WordPress title is build up from a few elements. One hook (filter) that holds most elements is ‘document_title_parts’. The wp_title() function is great, but it does not let you change the content only the format. Changing the WordPress title: The WordPress title is build up out of 4 elements and can be generated with wp_title(). […]
In wordpress you sometimes want to sort posts in a way that is not possible with the standard core. The first thing you have to investigate is: is it possible to do it in the standard way. Sort posts by custom post type The problem I had: Search results came back for different custom post […]
Verion: 0.1.0 Though www.google.nl itself does not get an impressive score when run through PageSpeed Insight. You might frown when you added the analytic script as Google instructed and Google tells you it is not right when you check your site on PageSpeed. For wordpress I made a plugin that solves this: It downloads the analytics.js, puts it […]
Atom is a brilliantly fast text editor with endless extras that come in packages. Atom customized for wordpress is a tailored tool for developers who like the functions and snippets in the library. Atom customized for wordpress install Atom: download latest from official site Commands to run in shell, or packages to look up in […]
In the plugin list ‘/wp-admin/plugin.php’ it is nice to add links to go to settings or management pages for people who just installed the plugin. They can find the pages under the plugin description without searching through the (long) list of menu links on the admin page. The benefit is that users see the options, […]