espo74
Forum Replies Created
-
Thanks, that worked great. I had tried similar code (from a previous post) but couldn’t get it to work, this one did the trick.
Any way to easily move your button to the wp-content-editor-tools section instead of being in the mce editor area?
Your quick responses are fantastic–really appreciate it.
Tried doing this and the entire set of editor buttons goes away. I think it is because you are both modifying the tables button. Is there anything that can be added/adjusted to create/use a different button or to completely disable this functionality? I would rather have both, but the table editor on a per page basis is more important to my client than the insert table functionality. They can keep track of which table is which and manually add in the shortcodes for the larger tables that we use your plugin for on their own.
you know, I did but I don’t remember what the setting was or what I adjusted to make it happen.
Forum: Plugins
In reply to: [HTML Import 2] [Plugin: HTML Import 2] How do I keep the existing slugs?ok…this confused me. will this help keep my old and ugly file names to be the same as they used to be?
uglylongfilename.php vs /ugly-long-file-name/?From an SEO perspective am I going to hurt my site by importing the pages and renaming them to the WP standard or am I not going lose good rankings by changing from ugly file name to the WP default?
am running into this with a few clients as well. is there a quick patch i might be able to do (a rename of the button in the code?) until you update. I know this is minor issue and doesn’t really justify an update to the whole plugin, but I’d love to do a quick search/replace in the code to get my clients to stop bugging me!
thanks–Awesome plugin, still love it more than anything.
Right On Tobias…thanks for the help–I am heading over to that nice and friendly Paypal donation button.
Tobias!
Thanks a ton. the wp_table_reloaded_print_table() actually isn’t working with: $term->name when followed by anything. I believe that is what is causing that “No data found” error.
However, with do_shortcode() the ‘.$term->name.’A||’.$term->name.’B works just perfectly. Although the footer row does not display at all (header displays just fine). Again, not an issue I can work around it.
Question: is do_shortcode more efficient than wp_table_reloaded_print_table?
A little more research and a previous post here led me to using echo do_shortcode and I found that it works.
$model_number_terms = wp_get_object_terms($post->ID, 'model_number'); if(!empty($model_number_terms)){ if(!is_wp_error( $model_number_terms )){ foreach($model_number_terms as $term){ echo do_shortcode( '[table id=1 filter='.$term->name.'A||'.$term->name.'B]' ); } } }
And then–I get an error if my table has a footer row assigned to it “no data found” although it displays the correct filtered table row…But I can live with that and work around it.
WooHoo!
Thanks for the reply!
A shortcode would be ideal–very elegant–but I am fine with just using it in the template (which is what I am doing with the above code) that serves my purpose right now.
The code seems like it should work…and logically it makes sense but this must be where I am not connecting a few PHP fundamentals correctly.
I cannot figure out how to properly replace the echo string with the wp_table_reloaded code:
<?php $model_number_terms = wp_get_object_terms($post->ID, 'model_number'); if(!empty($model_number_terms)){ if(!is_wp_error( $model_number_terms )){ foreach($model_number_terms as $term){ echo ' <img src="folder/'.$term->name.'.png" alt="'.$term->name.'" / > '; } } } ?>
That gives me the image SJ1301.png
<?php $model_number_terms = wp_get_object_terms($post->ID, 'model_number'); if(!empty($model_number_terms)){ if(!is_wp_error( $model_number_terms )){ foreach($model_number_terms as $term){ echo ' wp_table_reloaded_print_table( "id=4&use_tablesorter=true&print_name=false&filter=$term->name||KM1301SAH" ); '; } } } ?>
That, as one would assume, just returns the entire string as text.
I have tried a myriad of other variations without the echo or trying to replace it but have had no success–again, going back to my inexperience with PHP/WP coding. I am sure it is something I am overlooking, I am just not sure what or where….