This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Line break in WordPress meta box text area: the PHP way --> | |
<?php echo nl2br( esc_html( get_post_meta( get_the_ID(), 'my-meta-field', true) ) ); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^(.*)$ $1.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Example filter to add text style to TinyMCE filter with Mark's "MRW TinyMCE Mods" plugin | |
* | |
* Adds a "Text Styles" submenu to the "Formats" dropdown | |
* | |
* This would go in a functions.php file or mu-plugin so you don't have to modify the original plugin. | |
* | |
* $styles array Contains arrays of style_format arguments to define styles. | |
* Note: Should be an "array of arrays" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
/* * * * * * * * * * * * * * * * * * * * * WP User Felder * * * * * * * * * * * * * * * * * * * * * */ | |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); | |
add_action( 'edit_user_profile', 'my_show_extra_profile_fields' ); | |
function my_show_extra_profile_fields( $user ) { ?> | |
<h3>Alumni Informationen</h3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#yoholder').css("height", $('#yoscroll').height()); | |
$('.checkyo').css("top", $(window).height()); | |
window.onresize = function() { | |
$('#yoholder').css("height", $('#yoscroll').height()); | |
$('.checkyo').css("top", $(window).height()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (in_category ('news')) { | |
echo '<div class="content">'; | |
echo the_content(); | |
echo '</div>'; | |
} else { | |
$supercontent = get_the_content(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_wp_trim_excerpt($text) { | |
$raw_excerpt = $text; | |
if ( '' == $text ) { | |
//Retrieve the post content. | |
$text = get_the_content(''); | |
//Delete all shortcode tags from the content. | |
$text = strip_shortcodes( $text ); | |
$text = apply_filters('the_content', $text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteRule ^((?:[a-z0-9-_]+/){0,7})([a-z0-9-_]+)$ /#$2 [NE,R,L] | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{QUERY_STRING} !ajax | |
RewriteRule ^(.*)$ /#/$1 [R=301,L,NE] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var hash = window.location.hash; | |
$(hash).delay(1000).slideDown(700, function() { | |
$('html,body').animate({scrollTop:$(this).offset().top-30}, 1000, 'easeInOutExpo'); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$menuParameters = array( | |
'menu' => 'unternehmen', | |
'container' => false, | |
'echo' => false, | |
'items_wrap' => '%3$s', | |
'depth' => 0, | |
); | |
echo strip_tags(wp_nav_menu( $menuParameters ), '<a>' ); | |
?> |
NewerOlder