Puddinq.com sharing knowledge

WordPress php variabele in javascript and ajax request

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

Eonon - GA2114 improve radio receiption

The Eonon GA2114 is a Chinese car multimedia system that has radio reception as it’s weakest point. The reception might be less than it ought to be due to some settings. It is important to set the radio reception optimized for your region and then reset the system in order for it to have effect.After changing the […]

Eonon - GA2114 Manual

De Eonon GA2114 is a Chinese car multimedia player that runs on Android 4.4.4. Dowload manual: The GA2114 is a 2_DIN Quad-Core 7″ car stereo with endless options. It is best compared to a simple Android Phone with all the abilities. download instructionsGA2114 On top of the normal phone abilities it offers front camera DVR function […]

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

Changing the wordpress title

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

Sort posts in wordpress (custom way)

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