Puddinq.com sharing knowledge

Object orientated programming and namespaces in wordpress

Object orientated programming and namespaces in wordpress

Recently I did a 4 parts tutorial Tom McFarlin wrote on object orientated programming and namespaces in WordPress and it really shed some light on both subjects for me. The link. IT, webdesign … programming they all come with the aspect of learning. Like PHPStorm just had a mayor update, things change and you need […]

Wordpress Rewrite urls to pretty permalinks

WordPress is brilliant and handles a lot out of the box. This post goes beyond that. In settings you can influence your permalinks. You can build structures with prefixes, categories, tags, and dates but that’s about it, what if you want to use acf fields for permalink structure? Permalinks The permalink for this post is […]

Puddinq Dashboard - a bright, sunny view on the wp admin dashboard

A bright, sunny view on the wp admin dashboard. The Puddinq Dashboard adds functionality and coloring to the admin dashboard. Optional settings Show/ hide widgets Hide WordPress logo and menu Change to colors of the dashboard

WordPress add user capability on plugin activation

In the situation below is a class with two methods which could be hooked to plugin (de)activation. The first gets the user with the same e-mail address as the website (settings->general) and adds a capability to that user. The second removes the capability from all users that have it.

WordPress php variabele in javascript and ajax request

Once a page is loaded you can use Javascript to make an additional request for information. This requires a javascript file and a php function allowed to pass that information. All you need This article gives you all you need to make a plugin that can: Use a php variabele in a javascript file. (make […]

Reorder posts in blog loop

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 […]

Member or visitor content

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 […]

WP Multisite on Wamp

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 content

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 […]

woocommerce list and compare

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.  […]