Filespit
Forum Replies Created
-
I switched over to the Lightbox Plus plugin instead and now it works perfectly!
I read the documentation there and the way I’ve understood it is that the map searches for locations within a given radius from a given central point, which I suppose is the given “select your location” in map settings.
I’ve tried to change zoom level, zoom adjustment etc but I can’t seem to get it the right way. The way I see it, what I want to do here isn’t 100% possible. I just want the map to zoom in on a country when I click one in the pulldown, and when I click another country it zooms to that country instead. Then it can search results in the given radius. It’s this specific function that bugs me. How do I solve this, any suggestions?
Hi Stephen! I finally got it to work! It was indeed that code that was missing, thanks for helping me out!
New question though; when I click a date in a month, the page loads and resets the calendar to the current month, which in this case is september. Say I click a date in april 2013, then I want the calendar to stay in april when the page reloads, and not reset to september 2012. Is that possible?
Thanks again for answering. I have a new problem now that maybe you could help me with. I just installed WordPress on the www-adress, the link I posted above is my subdomain. I uploaded my theme with the same files, but the widget isn’t showing at all in the sidebar. Instead it lists my recent posts.
I have tried replacing codes in sidebar.php, functions.php and archive-event.php, but I can’t get the sidebar to show the widget. What am I doing wrong here?
Update: I just solved it. I had to add it to the sidebar under widgets in the admin panel. Now I’m back where I started this thread, I can’t browse the calendar.
I’ve removed the hardcoding for jquery and I’m using the wp_jquery_script instead. I also added this to register the global file. Still not loading on the sub-page though.
<?php wp_enqueue_script('jquery', $src='http://wptest.traineehalland.se/wp-content/themes/traineehalland/global.js'); ?>Hello Stephen,
Thank you for answering. I’ve looked into it and that does seem to be the problem. I tried hardcoding the url so it searches directly for the jquery and global files. It works for the front page but not the sub-page.
<script type="text/javascript" src="http://wptest.traineehalland.se/wp-content/themes/traineehalland/script/js/jquery/jquery.js"></script> <script type="text/javascript" src="http://wptest.traineehalland.se/wp-content/themes/traineehalland/global.js"></script>What should I do here? Does it matter if the widget is placed in the sidebar? It’s placed there by default after all. If jquery is loaded twice, how do you prevent that?
Forum: Plugins
In reply to: [Simple Fields] Simple Fields – Display fields in random orderHi Pär! Thanks for answering. I managed to solve this issue with the following code. Hope this helps someone else as well!
<?php $c = simple_fields_get_post_group_values($post->ID, "Users", true, 2); shuffle($c); foreach ($c as $b) { $i++; if($i < 3) { ?> <?php echo wp_get_attachment_image ($b["Image"], "full"); ?> <?php echo $b["Text"] ?> <?php } } ?>Forum: Plugins
In reply to: [WP-Paginate] WP-Paginate returning always the same pageI am having the exactly same problem! I’ve installed the plugin and added the wp_paginate() code at the bottom of my list of posts, and so far it works. However, every time I click on a number in the pagination it just reloads the page and lists the same posts again. The URL changes to /page/2/ but it doesn’t list the previous pages as it’s supposed to. I checked your site and it seems to work fine, how did you solve it?
My code;
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts=5'.'order=DESC'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="news"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'thumb' ); } ?> <h3><?php the_title(); ?></h3> <p><?php echo strip_tags(get_the_excerpt()); ?></p> <div class="readmore"><a href="<?php the_permalink();?>">läs mer</a></div> <div class="date"> <?php date('Y-m-d'); ?> | <?php post_reply_link(); ?> | <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank">dela</a> </div> </div> <?php endwhile; ?> <?php if(function_exists('wp_paginate')) {wp_paginate();} ?> <?php wp_reset_postdata(); ?> <?php $wp_query = null; $wp_query = $temp;?>Forum: Plugins
In reply to: [Simple Fields] Simple Fields – Display fields in random orderI solved the randomizing problem. I simply added shuffle($c); to the first line of code. Still can’t figure out how to only display 2 posts instead of all.