johnklijnen
Forum Replies Created
-
Thanks Barnez,
Although I’ve got the measures you mention already covered, I’m still not sure what to do if I get blocked out as a user? They work when I sleep, so I’m too late to take measures. I could ad another admin account but that’s giving them more opportunities to log in.
Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedI found the problem:
This poll doesn't exist!
was in the original fileThis poll doesn(backtick)t exist!
That is the only difference between these two functions. I compared them in Textwrangler.Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedThanks for trying but this code stops the backoffice from working. Blanc screen. There is a bug in it.
Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedI deactivated all plugins except Yop-Poll and still no solution.
Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedOh yes, just to be complete. I’m using the latest version of WordPress 3.9.1–nl_NL. Could that be the problem?
Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedOké, I checked with firefox, Safari and Chrome, all have Javascript enabled. The problem remains.
Forum: Plugins
In reply to: [YOP Poll] Changes aren't being savedI don’t really understand what you mean with javascript enabled? On my computer (Macbook pro) or browser (Chrome and Firefox)? I restarted my computer and tried again. The problem remains.
Forum: Plugins
In reply to: [WP Survey And Quiz Tool] No Total Results v2.14Same problem here,
No “Total Results” are displayed. I’m using the latest WP and the latest WP Survey And Quiz Tool. I started using this plugin two days ago. Already 418 filled in surveys and now I have to process them all by hand?
I hope that you resolve this problem soon!
Thanks in advance,
John.Forum: Hacks
In reply to: conditional tag for search.phpIs this a mission impossible or am I missing something very obvious? Please, could someone help me with this?
Thanks, Sribu that works perfect!
Forum: Hacks
In reply to: conditional tag for termsYes the problem is solved: see the above post. Thanks alchymyth and Mark!
Forum: Hacks
In reply to: conditional tag for termsI think I’ve got it:
<?php $terms = array(' '); $post_terms = get_terms('regio'); if($post_terms) foreach( $post_terms as $post_term ) { $terms[] = $post_term->slug; } ?> <?php if ( in_array('limburg', $terms) ): ?><a href="https://www.somedomain.com/?eventtype=sport®io=limburg" title="Limburg">Limburg</a><?php endif; ?> <?php if ( in_array('noord-brabant', $terms) ): ?><a href="https://www.somedomain.com/?eventtype=sport®io=noord-brabant" title="Noord-Brabant">Noord-Brabant</a><?php endif; ?>
So I changed
$post_terms = get_the_terms($post->ID, 'regio');
into:
$post_terms = get_terms('regio');
I’m goiiing to test this further but this also it works in a page template!
Forum: Hacks
In reply to: conditional tag for termsMaybe I should explain it by showing the test site:
https://www.regiotickets.nl/regiotickets/events/If you click on the lower menu (just above the map) “Concerten” (taxonomy-eventtype-concerten.php) you wil see that only a link for ‘limburg’ shows up in the map. All 9 events are ‘limburg’. only one event is ‘noord-brabant’ and ‘limburg’. this is incorrect. It should show both.
But if you click on “Theater” (taxonomy-eventtype-theater.php) you see that the map shows links for ‘noord-brabant’ and ‘limburg’. But here all 4 events are ‘limburg’ and only one is ‘noord-brabant’ and ‘limburg’. So here it’s correct.
I’m pretty confused about this.
Forum: Hacks
In reply to: conditional tag for termsThank you Mark for your suggestion. Although I’m not sure where or how to use this:-(
But a new problem has turned up. The solution from alchymyth works within a taxonomy and archive template. But I can’t seem to get it to work in a page template.
And another problem is that if the resulting page has posts of both ‘regio’ it only shows the “regio” that all posts have in common. But it should show both ‘regio’ (e.g. ‘limburg’ and ‘noor-brabant’)
I’m starting to believe that it has something to do with $post->ID. and that I should alter the array into something that does not need the post ID. But I’m not sure.Forum: Hacks
In reply to: conditional tag for termsAah, yes!!!
Thank you alchymyth! you are the best!