wp_editor customization

What you can do is use the get_current_screen() function to get what screen the current user is on ( in the admin panel ) and only add those global values whenever the user is viewing the post page: function my_format_TinyMCE( $in ) { $screen = get_current_screen(); if( is_object( $screen ) && ‘post’ == $screen->post_type ) … Read more

Custom button on custom taxonomy listing page

This action hook (found in /wp-admin/edit-tags.php) will output the button below the table (not quite where you have asked to position it, but it is an easily available action and outside the form table.) $taxonomy = ‘location’; // you will probably need to change this add_action(‘after-{$taxonomy}-table’,’custom_export_button’); function custom_export_button($taxonomy) { $export_url = admin_url(‘admin-ajax.php’).’?action=export_taxonomy’; echo “<form action='”.$export_url.”‘ … Read more

excerpt button not going to custom post page

You to set the global $post, otherwise your get_the_ID() function won’t work because this code is not in a WordPress loop. function all_excerpts_get_more_link($post_excerpt) { global $post; return $post_excerpt . ‘ <p><a class=”btn btn-secondary understrap-read-more-link” href=”‘. get_the_permalink( get_the_ID() ) . ‘”>’ . __(‘VIEW CASE’, ‘understrap’) . ‘</a></p>’; } add_filter(‘wp_trim_excerpt’, ‘all_excerpts_get_more_link’);

“Listen” button on my main post page

There are a number of plugins for WordPress to play stream radio. Some of them are: Shoutcast Icecast HTML5 Radio Player WordPress Live Streaming Audio Player 8 Awesome WordPress Plugins To Run Your Radio Website To play just an audio file, there is a number of plugins, too: WordPress HTML5 Audio Player Bar Compact WordPress … Read more

Hide download button from audio player

Hi another simple way is to add the following code to hide the download button. Please adapt width and margin top elements. .wp-block-audio:after { width:35px; background-color:#F1F3F4; color:#F1F3F4; content:’.’; float:right; border-radius:50%; margin-top:-95px; z-index:999; position:relative; }

File not found.