Strip shortcode from excerpt [duplicate]

A simple search in codex and you can set this! Anyway you can do something like : function remove_shortcode_from_excerpt($content) { $content = strip_shortcodes( $content ); return $content;//always return $content } add_filter(‘the_excerpt’, ‘remove_shortcode_from_excerpt’);

echo product-name in a link

I think you’re wanting to do this: add_filter( ‘woocommerce_order_table_product_title’, ‘my_order_table_product_title’, 10, 2 ); function my_order_table_product_title( $html, $item ) { return ‘<a href=”‘ . urlencode( strtolower( ‘http://vividcandi.net/telescope/’ . $item[‘name’] ) ) . ‘”>View Video</a>’; }

Why is this plugin not working?

$wpdb->custom should be “{$wpdb->prefix}custom” $wpdb->insert( $table, $data, $format ); take three params where 1st is table name. you should avoid wp as its not necessary that prefix will always be wp_ instead use $wpdb->prefix to get table prefix, “{$wpdb->prefix}custom” will output wp_custom (given prefix is wp for your site)

Carrying information from button click into form [closed]

The better way to do this is using javascript/jquery. Use either javascript webstorage api or jquery ajax $.post. Webstorage api will be good for this. Here how you can do it. $(‘body’).on(‘click’, ‘.button.small’, function(){ var index = $(this).parents(‘table’).index(‘table’); var cur_workshop = $(this).parents(‘.innercontent’).find(‘h3’).eq(index).text(); localStorage.setItem(‘workshop’, cur_workshop); }); Place above script on http://yft.ac/upcoming-workshops/ this page template. Then call … Read more

Display alt text as tool tip on page

It might be worth considering another plugin like http://wordpress.org/plugins/wp-supersized/ Otherwise I guess you might end up having to change the plugin (perhaps forking it on Github?) https://github.com/Myatu/Background-Manager-WP/blob/269fb907d652ac78e3f9fb0a402375f06ac449f9/resources/views/pub_footer.html.twig (Just realised your thread is related to another thread with more contributors: Display alt text as tool tip on page)

How to set different users for different pages?

Create a subfolder in plugins folder, name it ‘MyRestict’. In This folder put the following php: <?php /** * Plugin Name: My Restict * Plugin URI: http://wordpress.stackexchange.com/questions/112566/how-to-set-different-users-for-different-pages * Author: G.M. */ function my_restict_template_filter( $template ) { if ( is_page() ) { $post = get_queried_object(); $allowed = (string) get_post_meta($post->ID, ‘allowed_users’, true); if ( $allowed ) $allowed … Read more