saxisme
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PDF Invoices Italian Add-on] messaggio di errore sbagliatoCiao,
Grazie per il plugin.
Mi rifaccio a questo thread per chiedere se e nel caso dove è possibile personalizzare questo messaggio di errore
"Partita IVA di fatturazione è un campo obbligatorio."
Il cliente mi chiede di rimuovere
di fatturazione
è possibile?
GrazieForum: Plugins
In reply to: [Blox Lite] WP5.3 Genesis3.2.1 bugs?Welcome!
Forum: Plugins
In reply to: [WP Video Lightbox] Add Google Analytics Event TrackingHello,
You can customize the link this way:
<a href="https://www.youtube.com/watch?v=G7z74BvLWUg" rel="wp-videolightbox" title="">Click Me</a>
And add all the code you need in the
<a >
tag as normally.Didn’t test with the GA code but it should work.
- This reply was modified 7 years, 11 months ago by saxisme.
Hello,
Having a look at Bill Erickson’s post:
You could try something like this:
<?php add_action( 'pre_get_posts', 'be_set_number_of_posts' ); /** * Exclude Category from Blog * * @author Bill Erickson * @link https://www.billerickson.net/customize-the-wordpress-query/ * @param object $query data * */ function be_set_number_of_posts( $query ) { if( $query->is_main_query() ) { $query->set( 'numberposts', '-1' ); } }
You should place it in the archive portfolio template page.
It’s not tested, but may be a starting point.Hello @wfbrian,
I cannot see the option, are there any changes on the new version?
Experiencing the same problems.Thanks in advance,
Forum: Plugins
In reply to: [WooCommerce] Change "Choose an option" with attribute nameThanks to @mrosata that pointed to the right direction.
In the same Stack Overflow question, there is an update.
@savan Dholu suggests to replace$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( urldecode( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) : $product->get_variation_default_attribute( $attribute_name ); wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) ); echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . __( 'Clear', 'woocommerce' ) . '</a>' ) : '';
With
wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected, 'show_option_none'=> wc_attribute_label( $attribute_name ) ) );
It works like a charm!
Thanks guysHi,
Same for me.
Custom coming soon code and homepage still shows.
All other pages are hiddenForum: Plugins
In reply to: [Scripts To Footer] Missing argument 1 for get_taxonomy()Hi Joshua,
Thanks for the reply.Forum: Plugins
In reply to: [Photoswipe Masonry Gallery] Setting number of columnsHello everyone,
Yes, would be nice to have a full with gallery for small screens.
For now I have edited the css.Thanks for the cool plugin.
Forum: Plugins
In reply to: [AgentPress Listings] Non Featured Listings showing in featured listingsHi everyone.
I had the same need so I solved it – I don’t know how to do it differently – editing the plugin files.
Search in
agentpress-listings/includes/class-featured-listings-widget.php
The following (around line 35):
$query_args = array( 'post_type' => 'listing', 'posts_per_page' => $instance['posts_per_page'], 'paged' => get_query_var('paged') ? get_query_var('paged') : 1 );
And change it to:
$query_args = array( 'post_type' => 'listing', 'posts_per_page' => $instance['posts_per_page'], 'paged' => get_query_var('paged') ? get_query_var('paged') : 1, 'post__in' => get_option( 'sticky_posts' ) );
The last line filters the query to just the sticky post.
You can set the sticky post in the listing page (backend).If anyone can tell how to change the query without editing the plugin files would be great.
Thanks,Forum: Plugins
In reply to: [Our Team by WooThemes] Edit Email Field/labelHello,
For future reference, this is how I implemented it:
function sax_custom_member_fields( $member_fields ){ global $post; $team_member_email = esc_attr( get_post_meta( $post->ID, '_gravatar_email', true ) ); $user = esc_attr( get_post_meta( $post->ID, '_user_id', true ) ); //$user_search = esc_attr( get_post_meta( $post->ID, '_user_search', true ) ); //$twitter = esc_attr( get_post_meta( $post->ID, '_twitter', true ) ); //$role = esc_attr( get_post_meta( $post->ID, '_byline', true ) ); //$url = esc_attr( get_post_meta( $post->ID, '_url', true ) ); $tel = esc_attr( get_post_meta( $post->ID, '_tel', true ) ); $contact_email = esc_attr( get_post_meta( $post->ID, '_contact_email', true ) ); $member_fields = ''; $member_fields .= '<li class="our-team-contact-email" itemprop="email"><a href="mailto:' . antispambot( esc_html( $post->contact_email ) ) . '"><i class="fa fa-envelope-o fa-fw"></i> ' . antispambot( esc_html( $post->contact_email ) ) . '</a></li>'; $call_protocol = apply_filters( 'woothemes_our_team_call_protocol', $protocol = 'tel' ); $member_fields .= '<li class="our-team-tel" itemprop="telephone"><span>' . __( 'Tel: ', 'our-team-by-woothemes' ) . '</span><a href="' . $call_protocol . ':' . esc_html( $post->tel ) . '"><i class="fa fa-phone fa-fw"></i> ' . esc_html( $post->tel ) . '</a></li>'; return $member_fields; } add_filter( 'woothemes_our_member_fields_display', 'sax_custom_member_fields' );
For my case, I need to use it on a custom template I used for a page, so i added the code in the page-slug.php file (where slug is my page’s slug name).
Forum: Plugins
In reply to: [Our Team by WooThemes] Edit Email Field/labelHi Amber,
No, edited the plugin core…Forum: Plugins
In reply to: [AgentPress Listings] Unable to Translate "Features" taxonomyHi Ron,
Ok, I’m marking it as solved but had to modify the plugin.
Is there another way?Thanks,
Forum: Plugins
In reply to: [AgentPress Listings] Unable to Translate "Features" taxonomyHello Ron,
I checked the translation file which was fine but this led me to find through the files of a case sensitive “Features”, which led me to the
function property_features_taxonomy() { $name = 'Features'; $singular_name = 'Feature';
Which cannot be translated, correct?
So I modified the function to:function property_features_taxonomy() { $name = __('Features','agentpress-listings'); $singular_name = __('Feature','agentpress-listings');
Is this the right way to modify the function?
What do you think? Thanks,Forum: Plugins
In reply to: [AgentPress Listings] Unable to Translate "Features" taxonomyHi Ron,
I have followed the instructions on the post but still can’t make it work.
This is the only word that is not translated.
Do you have any ideas where should I start looking?Here a link to a screenshot: https://dl.dropboxusercontent.com/u/5435519/screenshot.png
Thanks,