breathelifein
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Pagination not working with custom queryI’m familiar with first-of-type. If this could be used in my instance, I’d have done so. My first post needs to have different content (longer excerpt, featured image with different proportions, more info in general), so just selecting it and using display or crop to hide all this content in the other posts just doesn’t make sense.
I’m trying to apply this to a page, so if I just use the regular query, the pagination also doesn’t work.
I’m far from a php expert, and I’ve been looking this up for weeks, but I simply can’t get it to work. I’ve tried two loops, but again, the pagination won’t work. In this case, it display the links to the other pages, but they all lead me to the content of page 1.
<?php if ( ! is_paged() ) { ?> <?php $first_query = new WP_Query('showposts=1'); ?> <?php if ($first_query->have_posts()) : while($first_query->have_posts()) : $first_query->the_post(); ?> Posts 1 style <?php endwhile; endif; ?> <?php } ?> <?php rewind_posts(); ?> <?php $sec_query = new WP_Query( 'offset=1' ); ?> <?php query_posts("paged=$paged"); if ($sec_query->have_posts()) : while($sec_query->have_posts()) : $sec_query->the_post(); ?> Other posts style <?php endwhile; endif; ?> <?php if(function_exists('wp_pagenavi')){wp_pagenavi();}?>
Forum: Developing with WordPress
In reply to: Pages sort_column / sort_order being ignoredOh, perfect! Thanks!
Really? No one? =/
Forum: Developing with WordPress
In reply to: “Missing argument 2” on a custom functioncsloisel, thank you! That solved my problem.
bcworkz, sorry, but you lost me. Haha You wanted to know where else that error message was showing up? Basically, anywhere where I could chose the categories, like quick edit on the posts list. Feel free to file a Trac ticket if you think it’ll help WP solve this issue.
Thank you!Will do, thanks for replying!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Javascript – Validation Status: FAILI didn’t use a plugin for that, I manually inserted the code on my header.php.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Javascript – Validation Status: FAILThe same thing is happening on two sites: absentiabrasil.com and stanakaticbrasil.com
Thanks!Forum: Networking WordPress
In reply to: Menu won’t display all sitesOh, stupid me. I’d never have guessed that. Thank you!
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Won’t add new domainBtw, what I want is to map mainsite.com/secondaryblog to newdomain.com.
Forum: Fixing WordPress
In reply to: Get page ancestors in a most viewed pages listAnyone?
Oh, I might’ve missed that one. But even past events are fine showing up. Thanks!
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Display events on pages, not postsFantastic, thank you!
Forum: Fixing WordPress
In reply to: Slider won’t work with custom queryI’m not using their WP plugin, but so I’m not sure they offer support. But thanks!
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Can’t edit imported feedThat works just fine, since I just wanted to import the events, not necessarily sync it with another calendar.
Thanks!Forum: Fixing WordPress
In reply to: Add dynamic meta value to wp_list_pagesAnyone?