Mad Max
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WP 4.2 Apache Segmentation on Plugin & Theme UpdateSame here when I try to update plugins or do a core update from 4.2 to
4.2.1Apache/2.2.22
PHP 5.3.10If I try to update to wp 4.2.1, I get an apache segmentation fault when wp tries to go to maintenance mode before overwrite core files.
Tried with a clean install of wp also: same resultHi bigvince3,
I was having a similar issue (js error after submission: “n is undefined” in ninja form js) after I’ve updated ninja form to 2.9.11 version with WP 4.1.x
Updating to wordpress 4.2 simply fixed it.
Hope it can helpForum: Plugins
In reply to: [WP Store Locator] How to add a contact form to every store?Thanks for your response. Is there a ETA for v 2.0?
Forum: Plugins
In reply to: [SimpleMap Store Locator] typo on apply filters for custom css filesActually, when it comes to load the custom template file, simplemap loads it from plugins_url() folder, so the filter in my code above is useless.
Well, I think WP_PLUGIN_DIR should be replaced with STYLESHEETPATH so users can add custom templates under their theme folder (it seems more logical to me).Forum: Plugins
In reply to: [Rich Text Excerpts] js injection in back-endJust updated and it seems to work great. Marking as resolved.
Forum: Plugins
In reply to: [Rich Text Excerpts] js injection in back-endGreat! thanks bjorsq
Hope I have done everything the right way.
I’m not used to actively use github (but the issue is definitely not longer deferrable!).
Forum: Plugins
In reply to: [Contact Form DB] Save data from multiple forms to the same "table"Great! Thanks a lot.
Forum: Plugins
In reply to: [Manual Related Posts] need to add a value from a custom fieldmmm, that’s not so simple. I had to modify the plugin code and add the current related post id to the action
bawmrp_li actionon line 99:$list = apply_filters( 'bawmrp_li', $list, ++$n, $id );So now, using related post id, I’m able to retrieve every data I need about each related post.
Forum: Plugins
In reply to: [Manual Related Posts] need to add a value from a custom fieldOk, I feel stupid! That’s very simple: just use
bawmrp_liaction, use global $post variable to retrieve the custom filed value and then return it appendend to the content.Great!
I’m giving a quick look to the code of Strong Testimonials and I guess I can’t deactivate “GT” and activate “Strong”, mantaining testimonials data, but I’m really going to try your plugin soon.Thanks again.
I’m so sorry! I’ve installed the plugin downloading it from github, without realizing that the version I was using is a fork of this plugin.
You can imagine my surprise when I read “There is no function with that name in GC Testimonials.” 😀I’m now using the plugin from WP repository and I confirm that it works like a charm.
Thanks, Daniele.
I totally agree with Ryan.
Joost, please consider those suggestions and give us some feedback about it.Thanks in advance.
Forum: Plugins
In reply to: [Taxonomy Images] Get image of category parent?Hi Blake, there is a quick & dirty way to get the image associated to a certain term (not the actually queried term) with this plugin: all associations are kept in an array, as a wp option, so you can get the entire array just using
$associations = get_option( 'taxonomy_image_plugin' );Every array element has the term_id as key and the attachment id as value; so we can write a function to get the image associated to a specific term ID, like this one:
if ( !function_exists( 'get_term_image' ) ){ function get_term_image($args=array()) { $defaults = array ( 'term_id' => 0, 'size' => 'thumbnail', 'classes' => 'wp-attachment term-image' ); $term_img=false; // Parse incoming $args into an array and merge it with $defaults $args = wp_parse_args( $args, $defaults ); // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract( $args, EXTR_SKIP ); if ( $term_id > 0) { $associations = get_option( 'taxonomy_image_plugin' );//check tax images created by plugin Taxonomy Images if ( is_array( $associations ) && count ($associations) ){ if ( isset($associations[$term_id]) ) { $attachment_id=$associations[$term_id]; $term_img=wp_get_attachment_image( $attachment_id, $size, false, array( 'class' => $classes ) ); } } } return $term_img; } }Then you can get the html tag of the image associated with a term id, like this:
$args=(array( "term_id" => $my_term_id, "size" => "my_custom_size_or_one_of_small_medium_large", "classes" => "class1 class2 class3" )); $image = get_term_image($args);Forum: Plugins
In reply to: [MailUp newsletter sign-up form] Silently change jquery version on frontendThanks a lot for the update!