Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Flöter DanielFloeter

View GitHub Profile
@DanielFloeter
DanielFloeter / functinos.php
Last active Apr 8, 2020
Open title link in new window or tab (Filter extension)
View functinos.php
<?php
// Filter extension:
function open_in_new_tab_callback( $title ) {
// ToDo Just the title and no HTML
return $title;
}
add_filter( 'widget_title', 'open_in_new_tab_callback' );
@DanielFloeter
DanielFloeter / functinos.php
Last active Oct 30, 2016
Filter extension for the Event Post Widget: "Show only post from the current month and the current year"
View functinos.php
<?php
/*
* Filter extension for the Event Post Widget: "Show only post from the current month and the current year"
* @url https://wordpress.org/plugins/event-post/
*/
function cpwp_add_extensions_panel( $widget, $instance ) {
$instance = wp_parse_args( ( array ) $instance, array(
'use_current_month_filter' => ''
@DanielFloeter
DanielFloeter / functions.php
Last active Oct 30, 2016
Posts of current month - Filter extension
View functions.php
<?php
// Filter extension: "Show only post from the current month and the current year"
/**
* Adds a checkbox to the My settings panel which can be checked/unchecked the 'Posts of current month' filter/hook
*
* @param widget, instance
* @return adds a ckeckbox to the form()
*/
function cpwp_add_extensions_panel( $widget, $instance ) {
@DanielFloeter
DanielFloeter / dynamic-landing-navigation.css
Last active Sep 28, 2016
Set posts from the Category Posts Widget in a row
View dynamic-landing-navigation.css
/**
* 14.0 - Custom
*/
.cat-post-item {
float: left;
list-style-type: none;
padding: 10px;
}
.cat-post-item a {
You can’t perform that action at this time.