Post ID Shortcode
add_shortcode( 'postid', 'post_id_sh' ); function post_id_sh($atts, $content, $tag) { global $post; return get_the_ID(); }
add_shortcode( 'postid', 'post_id_sh' ); function post_id_sh($atts, $content, $tag) { global $post; return get_the_ID(); }
// Add Shortcode function enym_autobutton( $atts ) { // Attributes $atts = shortcode_atts( array( 'label' => '', 'class' => '', 'link'=>'' ), $atts ); global $post; //$terms = wp_get_post_terms( $atts['post_id'], $atts['taxonomy']); //$term = get_term( '24', 'objektart' ); $terms = wp_get_post_terms(…
This little snippet ties into a Forminator hook to allow the plugin to process shortcodes instead of just display them as text. add_filter( 'forminator_replace_variables', 'do_shortcode' );
//self enclosing shortcode use as [subtitle class="css-class"]TEXT[/subtitle] //https://www.hostinger.com/tutorials/create-a-shortcode-in-wordpress function subtitle_link_att($atts, $content = null) { $default = array( 'class' => '', ); $a = shortcode_atts($default, $atts); $content = do_shortcode($content); return '<div class="'.($a['class']).'">'.$content.'</div>'; } add_shortcode('subtitle', 'subtitle_link_att'); //[subtitle class="subtitle"]Link[/subtitle]
SPF für E-Mail-Hosting, Webhosting, Webserver und Microsoft 365 Hinweis: Wenn Ihre Domain per A-Record auf einen externen Server verweist, ergänzen Sie den SPF-Eintrag bitte um die IP-Adresse des externen Servers. Hierzu ein Beispiel, wobei die externe IP-Adresse in diesem Beispiel 1.2.3.4…
Use this HTML: <div class="german"> </div> CSS .german { background: #000000; background: -moz-linear-gradient(left, #000000 0%, #000000 66%, #cc0018 66%, #cc0018 85%, #f0c400 85%); background: -webkit-linear-gradient(left, #000000 0%, #000000 66%, #cc0018 66%, #cc0018 85%, #f0c400 85%); background: linear-gradient(to right, #000000 0%, #000000…
Simply put a php.ini file in the root of your installation and force the error. Afterwards you will see the errorphp-errors.log file. Maybe you nee to remove the old file before a new one can be generated. error_reporting = E_ALL…
/*CHANGE BREADCRUMBS*/ function myprefix_tweak_breadcrumbs( $trail ) { global $post; if (get_post_type( $post->ID ) == "expertenprofil") { $trail['trail_end'] = get_post_meta($post->ID, 'wpcf-anonymer-titel', true); return $trail; } } add_filter( 'wpex_breadcrumbs_trail', 'myprefix_tweak_breadcrumbs' );
//CHANGE POST TITLE function custom_modify_title( $title, $id = null ) { return 'CUSTOM '.$title; } add_filter( 'wp_title', 'custom_modify_title', 10, 2 ); add_filter( 'the_title', 'custom_modify_title', 10, 2 ); Change depending on post type //CHANGE POST TITLE add_filter('the_title','custom_modify_title2'); function custom_modify_title2($data){ global $post;…