Kategorie: WordPress
-
WordPress + Laravel
WordPress & Laravel Laravel WP Backend Corcel
-
Into the Abyss
The mess that is WordPress and how to make the best of it (Presentation Slides) We had a neat Web Engineering Group Düsseldorf Meetup at the old Trivago location (they’re currently moving). Once again an awesome event with a very nice lineup of speakers. Enjoyed it a lot.
-
Remote WordPress File Dump with wget & ftp (excluding uploads dir)
Put this in a bash script and execute it: #!/bin/bash wget -X /PATH/TO/WP_ROOT/wp-content/uploads -r -nH -nc ftp://FTP_USER:FT_PPW@FTP_HOST//WP_ROOT
-
Prevent perpetual WordPress login redirects in local and test installations
To prevent perpetual login redircet loops in local/development WordPress installations add this function to your wp-config.php (have it return the users ID you want to authenticate): function wp_validate_auth_cookie($cookie=“,$scheme=“) { return 1; // admin user id }
-
Remove „Private:“ from the titles of private WordPress pages
# add to functions.php of your theme function the_title_trim($title) { $title = attribute_escape($title); $findthese = array( ‚#Protected:#‘, ‚#Private:#‘ ); $replacewith = array( “, // What to replace „Protected:“ with “ //What to replace „Private:“ with ); $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter(‚the_title‘, ‚the_title_trim‘);
-
WordPress RTE Keyboard Shortcuts
-
WordPress Debugging
Debug Bar Debug Bar Taxonomies Debug Bar Post Types Debug Bar Shortcodes Kint Debugger
-
WordPress Path to actual active theme / Pfad zum eigentlich aktiven Theme
preg_replace(„/\/\w*?\.css/“, „/“, get_stylesheet_uri()); Gibt den Pfad des aktiven Themes zurück, auch wenn dies ein Child-Theme ist. Vorrausgesetzt, das Child Stylesheet ist mit WordPress Bordmitteln im Theme eingebunden und aktiviert. Returns the path of the actual active theme, even if this is a child theme. This only works if the child themes stylesheet is included with…
-
WordPress Updates ohne/without FTP
Disable FTP requirement for Pluing Installations and Updates / FTP Anforderung für Plugin und Updateinstallation deaktivieren: //add to wp-config.php define(‚FS_METHOD‘,’direct‘);
-
WordPress – Does Author have Posts or not? / Hat der User Posts oder nicht?
<?php if (count(query_posts(‚author=‘.get_current_user_id().’&posts_per_page=5′)) > 0) { //User hat posts / User has posts } else { //User hat KEINE posts / User has NO posts } ?>
-
WordPress Plugin Pfad/Path
Pfad zum Plugin in WordPress / Path to plugin in WordPress plugins_url().“/[PluginDirectoryName]“
-
URLs in WordPress
site_url(); bloginfo(„wpurl“); //check this! Returns Root Domain URL without trailing slash. home_url(); Returns URL of the WordPress Home target without trailing slash. Usually is the same as the root domain, but needn’t be! admin_url(); Returns the URL leading to the WP Admin directory including trailing slash.
-
WordPress Template Hierarchy Diagram
WordPress Template Hierarchy Diagram
-
Sprachupdates in WordPress deaktivieren / Disable WordPress language updates
Das hier in die functions.php des aktiven Themes eintragen / Add this to the active themes functions.php: add_filter( ‚auto_update_translation‘, ‚__return_false‘ );
-
WordPress
Das Internet ist voll von freien Webredaktionssystemen, die auf PHP und MySQL basieren. Auch deren Verwendung ist allgegenwärtig. Unter diesen Redaktionssystemen nimmt WordPress jedoch eine Ausnahmestellung ein. Mit einer expotentiell wachsenden atemberaubenden Zahl von inzwischen über 140 Millionen aktiven Installationen betreibt das WordPress Redaktionssystem inzwischen etwa ein Drittel des gesamten Web. Wenn auch die zugrundeliegende…