S3nd41
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Nested Loop: Loop 6 posts, Loop same w/ different code, RepeatIt’s not urgent but somewhat like 90% of the threads I create/participate in remain unanswered, (either general threads or plug-in support requests). No point in creating a forum if there’s no actual participation from the community, I think. That put, thanks for the tip!
Forum: Themes and Templates
In reply to: Nested Loop: Loop 6 posts, Loop same w/ different code, RepeatNo, I’m building my custom theme.
I’ve found some code that I’ve adapted and so far I’ve managed to get the loop to repeat twice on the first 6 posts, but after those first 6 it simply loops the remaining posts one time.Here’s the code:
The problem is that the second loop is only looping once after the first one prints the first 6 posts, how could I adapt this so that the second loop executes everytime?
[No bumping. If it’s that urgent, consider hiring someone.]
Forum: Plugins
In reply to: Simple plugin to auto post to Google ?The best option to post to Google+ so far is to add your website’s RSS feed to Google Reader and share it from the +1 icon there. Looking forward for auto-posting though.
Forum: Plugins
In reply to: [Facebook Page Publish] [Plugin: Facebook Page Publish] Post ThumbnailIt seems to be working for new posts. Doesn’t work if you go to an old post and simply press Update, which is a shame because I’d like to publish some old posts as well ??
Forum: Plugins
In reply to: [Facebook Page Publish] [Plugin: Facebook Page Publish] Post ThumbnailI can’t get it to work either :\
Forum: Plugins
In reply to: [Infinite-Scroll] Infinite Scroll on home page with multiple loopsThanks for your reply.
I will take a shot at the Jquery version of your script and thanks for the great visual guide, I can’t zoom in on the image you have on your main website so that will be helpful!
I want to use both, because I already have a strong follower base on Tumblr that I want to maintain but WordPress allows me more theme customization.
Anyway, I will continue to use it like this and wipe the dupes manually.
But wouldn’t it be possible to turn it into a continuous Sync tool with little change to code? It could simply store a database reference to the newest post imported on any given time and when you run it again it would import all recent posts and stop when it hit the reference post stored previously.
Maybe something to consider on the next version of the plug-in? ??
Hi Otto,
Thanks, I will use that solution instead!
Maybe you can include that on the next version of the plug-in, lots of users on Tumblr reblog photos from outer sources so this could come in handy for them.
Take care!
Okay, I managed to figure it out, I’ll leave it here if someone wants to do this:
Add:
$post[‘tumblr_src’] = (string) $tpost->{‘photo-link-url’};
Below:
$post[‘tumblr_url’] = (string) $tpost[‘url-with-slug’];and…
Add:
add_post_meta( $id, ‘tumblr_’.$this->blog[$url][‘name’].’_src’, $post[‘tumblr_src’] );
Below:
add_post_meta( $id, ‘tumblr_’.$this->blog[$url][‘name’].’_id’, $post[‘tumblr_id’] );The click-through url is being attached as a click-through link to the image on the post contents inside WordPress which is generated automatically with the caption on bottom so it should be simply a matter of getting the url and pasting it like the rest:
add_post_meta( $id, 'tumblr_'.$this->blog[$url]['name'].'_id', $post['tumblr_id'] );
Maybe like this:
add_post_meta( $id, 'tumblr_'.$this->blog[$url]['name'].'_src', $post['src'] );
?Forum: Plugins
In reply to: [Tumblr Importer] [Plugin: Tumblr Importer] Import TipThis should be depicted on the description in flashing caps. I lost about 30 minutes trying to figure out what was wrong with the plug-in and was nearly about to delete it before I came here and stumbled upon this post.
Not that my 30 minutes are really that precious but it’s so easy to add a warning to the description.
Forum: Hacks
In reply to: Display X number of page buttons in a row, then break, then display contentsI followed a tutorial and ended up with this:
But this way I have to define a new variable with gradually increasing offset and copy paste the 2 loops over and over. Is there some way to make him repeat the loops automatically?
Forum: Hacks
In reply to: Display X number of page buttons in a row, then break, then display contentsI think this can be achieved by creating a loop within a loop. Something like this?
<?php query_posts(''); $ids = array(); while (have_posts()) : the_post(); $c++; if( $c == 6) { $c = 0; query_posts(''); while (have_posts()) : the_post(); $d++; if( $d == 6) { $d = 0; } else $style=''; $ids[] = get_the_ID(); endwhile; } else $style=''; $ids[] = get_the_ID(); ?>