Diego Betto
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Get 10 posts at main and 10 older at sidebarIf you
var_dump($args);
just before sidebarget_posts($args);
, what’s the output (just var_dump() output)?I think that ‘posts_per_page’ and ‘offset’ must have an integer always set.
Forum: Fixing WordPress
In reply to: Using multiple themes on alternative pages (portfolio etc)Can you try using permalinks like
/%postname%/
and follow this faq using
https://outside.hobhob.uk/test/portfolio/
instead of
https://domain.com/news/
?https://www.ads-software.com/plugins/jonradio-multiple-themes/faq/
How do I select a Theme for a Category of Posts?
That functionality, to directly specify a Theme for a Category on the Settings page, is being investigated for a future version of the jonradio Multiple Themes plugin. But there is already a solution based on Permalinks:- In the WordPress Admin panels, go to Settings-Permalinks
- Specify a Permalinks structure that begins with /%category%/
- Push the Save Changes button
- Go to Settings-Multiple Themes plugin
- In the Section “For An Individual Page, Post or other non-Admin page”, select the Theme for the Category of Posts
- Enter the URL of the Categories page, e.g. – https://domain.com/news/
- Click the checkbox “Select here if URL is a Prefix”
- Push the Save Changes button
Forum: Fixing WordPress
In reply to: Using multiple themes on alternative pages (portfolio etc)Have you tried using a query keyword? Any URLs containing the keyword you define will use the theme defined in this setting.
You can force adding something like ‘&theme=2’ in your url or maybe using existing keywords and define in your plugin that theme=2 uses a particular theme.
Forum: Fixing WordPress
In reply to: Get 10 posts at main and 10 older at sidebarIf sidebar comes before main content? => try reset query
https://codex.www.ads-software.com/it:Riferimento_funzioni/wp_reset_query
otherwise, what happens now that you say is wrong? What’s the output?
Solved. Added a check in functions.php so that if the select level is more expensive I do the difference.
Hope can be usefull.function check_upgrade_level($level) { global $wpdb, $current_user; $levels = $wpdb->get_results("SELECT id,billing_amount FROM $wpdb->pmpro_membership_levels WHERE 1" ); foreach ($levels as $levelDet){ $levelDets[$levelDet->id]=$levelDet->billing_amount; } if($levelDets[$level->id] > $levelDets[$current_user->data->membership_level->id]){ $diff = $levelDets[$level->id] - $levelDets[$current_user->data->membership_level->id]; $level->initial_payment = number_format((float)$diff,2); $level->billing_amount = $level->initial_payment; } return $level; } add_filter("pmpro_checkout_level", "check_upgrade_level");
Forum: Reviews
In reply to: [Media Checkerboard] Should be in core :)Thank you ??
Thank you ??
Forum: Plugins
In reply to: [mqTranslate] Adding Content to WYSIWYG dupes in native WP Content Editorworks like a charm! Tnx!
yeah! Thanks, works like a charm!
Hi,
event booking.
– You fill in the form fields
– When I click send, I’ve to get a code from an existing database
– This code must be included in the e-mail that comes to the userThanks
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Edit not workingTnx a lot!
Forum: Plugins
In reply to: [qTranslate] not workingtry mqTranslate
Forum: Plugins
In reply to: [qTranslate] The plugin doesn't workUse mqTranslate
Forum: Plugins
In reply to: [FireStorm Professional Real Estate Plugin] Search WidgetNice, thank you.
Forum: Plugins
In reply to: [FireStorm Professional Real Estate Plugin] Search WidgetMore fixes (javascript errors in Google Map on search)
xml/marker_listing.php, line 17
is} elseif (isset($_GET['search'])) {
changed to
} elseif (isset($_GET['search']) && $_GET['search']!='') {
hooks.php, lines 220-222
areif (isset($GMapSLat)) { $GMapLat = $GMapSLat; } if (isset($GMapSLong)) { $GMapLong = $GMapSLong; } if (isset($GMapSZoom)) { $GMapZoom = $GMapSZoom; }
changed to
if (isset($GMapSLat) && ($GMapSLat!='S')) { $GMapLat = $GMapSLat; } if (isset($GMapSLong) && ($GMapSLong!='S')) { $GMapLong = $GMapSLong; } if (isset($GMapSZoom) && ($GMapSZoom!='S')) { $GMapZoom = $GMapSZoom; }