Sonnenschauer
Forum Replies Created
-
Ok, thank you for your feedback
No, not really. Right now I have 25 entries in my list and 170 total entries, that means I have 6 pagination fields, which take space and if the number of entries is increasing, the number of fields would be too much and confusing. So, instead of having all fields my question is if it is possible to reduce the pagination fields?
E.g. instead of [1] [2] [3] [4] [5] [6] [7] [8]
it would look like [1] [2] [3] … [8]
Forum: Plugins
In reply to: [Visual Portfolio, Photo Gallery & Post Grid] Save filter stateOk, thank you very much for your response.
Greetings!Forum: Developing with WordPress
In reply to: Different output depending of post or custom post typeThanks a lot for your help! I think I got in the right direction, also to understand the Loop a litte bit better. As suggested I read the post type with get_post_type and put it in a variable, then read it out with a if/else statement. And it seems to work! Here’s the final code:
$args = array( 'numberposts' => '1', 'post_type' => array('talks','post') , 'post_status' => 'publish', 'orderby' => 'date' ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ $post_type = get_post_type($recent["ID"]); if ($post_type == 'talks') { echo 'Latest Talk from '. get_the_date('d F Y', $recent["ID"]) .':<br/><a href="' . get_permalink($recent["ID"]) . '">'. get_the_title( $recent["ID"] ) .'</a>'; } else { echo 'Latest News from '. get_the_date('d F Y', $recent["ID"]) .':<br/><a href="' . get_permalink($recent["ID"]) . '">'. get_the_title( $recent["ID"] ) .'</a>'; } }
I am very aware that the code can be beautified or simplified. For now, however, what counts is that it works, thanks to your help!
Forum: Developing with WordPress
In reply to: Different output depending of post or custom post typeYou’re right, I forgot to delete the $args line, that came from a test with two variables. And thanks for the hint with the wp_get_recent_posts function! Maybe I can figure out how to realise it. For non-developers like me the official documentation is a bit cryptic. We’ll see. Thanks a lot anyway!
Forum: Plugins
In reply to: [Math Captcha] Set cookies only when user allows use of cookiesOh, my mistake. I’ve tried many possibilities and in the end I didn’t notice that this script is for the Cookie Notice Plugin. Instead I’m using the EU Cookie Law plugin, which has a similiar PHP cookie consent check:
if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) { // Your code }
Unfortunately I didn’t get it to work yet.
Forum: Plugins
In reply to: [Math Captcha] Set cookies only when user allows use of cookiesThere’s no caching plugin installed or active. Maybe another reason?
Just to be sure if I did the changes right. The crucial part of the code for class-cookie-session.php looks like this now:
/** * Initialize cookie-session. */ public function init_session() { if ( is_admin() ) return; // CHANGE START – Check if cookies are allowed if (function_exists(‘cn_cookies_accepted’) === true && cn_cookies_accepted() !== true ) { return; } // CHANGE END if ( isset( $_COOKIE['mc_session_ids'] ) ) $this->session_ids = $_COOKIE['mc_session_ids']; else { foreach ( array( 'default', 'multi' ) as $place ) { switch ( $place ) { case 'multi': for ( $i = 0; $i < 5; $i ++ ) { $this->session_ids[$place][$i] = sha1( $this->generate_password() ); } break;
Forum: Plugins
In reply to: [Math Captcha] Set cookies only when user allows use of cookiesDoesn’t work for me, unfortunately. A sustainable solution would be great, means a plugin update.
The same happens for us. My client noticed that the checkbox labels arrive in the mail as mentioned by tmeisky. Thanks for fixing this!
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Changes currency on check-out pageI’m sorry, the currency still changes, but only for variable products.
In our case, the user e.g. chooses to buy music as CD or Download. If I choose CD, everything works fine. If I choose Download (there is no need of giving an billing adress), the currency changes and the shop stays in the changed currency even if I choose to continue shopping.
If a choose a Download and a CD (then I have to give billing infos), it seems to work fine.
Hope that helps. Thanks for your effort!
Adriano
Had the same issue with a ThemeForest template using revolution slider. Seems like this is a jQuery problem and I could get it solved by activating the “Performace optimization” option in Event Manager general settings.
There you can reduce the loading of JS to specific pages. That helped for me.
No error message anymore. Thanks for your quick update!
Greetings, Adriano
Same issue here.
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Manual country selectJust put this line in the appropriate file, e.g. header.php
<?php do_action('wcpbc_manual_country_selector'); ?>
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Manual country selectThere’s a short description in the “Installation” tab of the plugin:
Country Selector (optional)
Add action “wcpbc_manual_country_selector” to your theme.
To customize the country selector:
Create a directory named “woocommerce-product-price-based-on-countries” in your theme directory. Copy to the directory created avobe the file “country-selector.php” included in the plugin. Work with this file.Hope that helps.