CaptainCrunch
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Gallery Lite] Not working for meI tried the free version of this gallery plugin as well. As their forum is for pro users only I need to post here.
I’m having the same problems with Social Gallery. The gallery seems to have issues with WP native gallery. Even if the gallery is set to link to the media file, and I click on it, the lightbox will appear for a split second and then disappear again. It works with single photos but not with galleries.
What I found out though: If I create a new gallery, and publish it with (with link to media file selected) it won’t work. If I go back and chose “attachment page” it won’t work obviously. If I go then back again and chose “Media File” again, my gallery will work. Maybe that helps to find the bug… I’m running WP 3.5.1
Forum: Plugins
In reply to: Jetpack Carousel scrollbar issuesHere’s another screenshot depicting how upcoming photos overlay the second scrollbar…
https://docs.google.com/file/d/0BxAWZIlNxYKNZjluSlVWbHZ1UEE/edit?usp=sharing
Got the same bug in several browsers and on different computers. I’m using the carousel with Jetpack…
Forum: Fixing WordPress
In reply to: Static start page template, wp_query, paginationhey keesiemeijer,
alright, pagination shows up and works, thanks so much for your help ??
I used this: https://codex.www.ads-software.com/Function_Reference/paginate_links
It displays all the pages in numbers and links them accordingly. That’s all fine and it does work correctly. However, I wonder how to get the ‘Previous’ ‘Next’ links to work? — Those won’t get listed…
Here’s my code
<?php global $my_query; $big = 999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'total' => $my_query->max_num_pages, 'prev_next' => $my_query->True, 'prev_text' => __('« Previous'), 'next_text' => __('Next »') ) ) ?>
Forum: Fixing WordPress
In reply to: Static start page template, wp_query, paginationmmmh… So I put this in the very top spot of my code and overwrite the old $my_query? Can I then move on and add pagination somewhere else on the page?
Forum: Fixing WordPress
In reply to: Static start page template, wp_query, paginationHey there,
sorry for my late reply, I had quite a busy week… ?? Yes it’s a static page. I’m using Thematic as underlying structure. Well, if I’d use your approach, would that solve my problem. As I see it — and correct me if I’m wrong — your link helps me to sort and display teasers of certain categories… The categories I’d like to display on this page all show up correctly. I’d just like to be able to limit those article-excerpts/teasers to… say… 10 per page and would then like WP to show a link to the remaining pages with teasers — all split up to 10 each page…
Thanks so much…
Oh, and topic resolved — sorry, forgot to check the box in my previous post ??
Hey there keesiemeijer,
Awesooooooome!! ?? That did the trick! Brillant!! Thanks so much for your help. Your code solved my problem. Gosh, PHP really begins to be kinda fun :-))
Hey keesiemeijer,
Thanks for your input. I guess I must have made some mistake while adding the code, because it now replaces the categories and shows ‘Array’ (just spimple text)…
Just to be sure: I’ve put the above code in my functions.php and called it via get_the_category(); ?
Thanks
Hey Jan,
finally! We got that sorted! Thanks so much, your code works like a charm ??
Cheers
Hey there James,
thanks for your reply. Unfortunately that didn’t solve my problem… I tried something quite similar (adding
<div class="my_class"></div>
) in the middle part of the bracket. What it does then, is to write my div class before each<a href>
link instead of encapsulating it… And when I add the class like you did in your example, it addresses the whole block of links. Is there any other way to address each link? I’d like to add boxes to each tag/link — similar to what TheVerge does on their website…Cheers.
Forum: Fixing WordPress
In reply to: Featured Image does not hard-cropI don’t know what I’m doing wrong, but I tried a different code yet again. However, changing “set_post_thumbnail_size( 300, 200, true );” from ‘true’ to ‘false’ doesn’t change a thing. According to WP codex, it is supposed to change the photo from hard-crop to soft-crop mode. I uploaded a new photo to check, if this piece of code has any effect at all. It doesn’t. Other people have reported simular issues with “set_post_thumbnail_size’. All I want is for the photos of my excerpts to all look the same. I’ve been messing around with this for days, it can’t be that difficult?!
<?php
// Add filter to the_content
add_filter(‘the_content’, ‘my_excerpts’);function my_excerpts($content = false) {
// If this is the home page, an archive, or search results
if(is_front_page() || is_archive() || is_search() || is_category()) :
global $post;
$content = $post->post_excerpt;// If an excerpt is set in the Optional Excerpt box
if($content) :
$content = apply_filters(‘the_excerpt’, $content);// If no excerpt is set
else :$content = $post->post_content;
$content = strip_shortcodes($content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
$content = strip_tags($content);
$excerpt_length = 55;
$words = explode(‘ ‘, $content, $excerpt_length + 1);
if(count($words) > $excerpt_length) :
array_pop($words);
array_push($words, ‘ Weiterlesen‘);
$content = implode(‘ ‘, $words);
endif;
$content = ‘<p>’ . $content . ‘</p>’;endif;
endif;// Make sure to return the content
return $content;
}//* First we will add the thumbnail feature *//
add_theme_support( ‘post-thumbnails’, array( ‘post’ ) ); // Add it for posts
set_post_thumbnail_size( 300, 200, true ); // hard crop mode//* To create our own loop we have to get rid of thematic index loop first.*//
function remove_index_loop() {
remove_action(‘thematic_indexloop’, ‘thematic_index_loop’);
}
add_action(‘init’, ‘remove_index_loop’);// Now we will create our own loop.
function thumb_index_loop(){
while ( have_posts() ) : the_post() // Start the loop:
// This is just what we decide to show in each post ?>
<div id=”post-<?php the_ID() ?>”>
<div class=”hentry”>
<?php thematic_postheader(); ?>
<?php the_post_thumbnail(); // we just called for the thumbnail ?>
<?php the_content(); ?><?php thematic_postfooter(); ?>
</div>
</div><!– .post –><?php
endwhile; // loop done, go back up
}
// And in the end activate the new loop.
add_action(‘thematic_indexloop’, ‘thumb_index_loop’);
?>