AndresHolmes
Forum Replies Created
-
Forum: Plugins
In reply to: [Tabs Shortcodes] Set active tabWow, that was quick! Thank you so much!
Forum: Plugins
In reply to: [Tabs Shortcodes] Set active tabOk, thank you for considering that ??
Forum: Plugins
In reply to: [Tabs Shortcodes] Set active tabI know that. But as far as i know, you cannot add that “#tab-3” to a “default” link of an arcticle.
When you have a loop of articles on main page, the link is always “https://domain.com/your-page/”, “https://domain.com/your-page2/” and so on…So the first tab always loads up. You have no way of choosing the landing tab. This thing you mentioned is usable moreover only externally.Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpone last thing – everytime I make a post sticky, number of displayed post on the first page increases…
I added a special div with featured post with this code
<?php $my_page = (get_query_var('paged')) ? get_query_var('paged') : 1; if (is_front_page() && $my_page == 1) {?> <div id="featured"> <?php $loop = new WP_Query( array( 'showposts' => 2, 'post__in' => get_option('sticky_posts'), 'caller_get_posts' => 1 ) ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <div> <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="entry-summary"> <?php the_excerpt(); ?> </div> </div> <?php endwhile; ?> </div> <?php } ?>
now if i mark one post as sticky i get a slider with posts #1234, a div with a sticky post, and a list of post #45678910 – post #4 is there twice
now if i mark two posts as sticky i get a slider with posts #1234, a div with two sticky posts, and a list of post #345678910 – posts #3 and #4 are there twice
i figured, that if i keep always only 2 posts marked as sticky and change
<?php if (have_posts()) : while (have_posts()) : the_post(); if (is_front_page() && $my_page == 1 && ++$my_post_count < 5) continue; ?>
to
<?php if (have_posts()) : while (have_posts()) : the_post(); if (is_front_page() && $my_page == 1 && ++$my_post_count < 7) continue; ?>
i get the appearence i want, but isn’t there a prettier way, so that i woudn’t have to unstick a post, when i stick new one?
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpThank You very much! It works perfectly!
Only the slider was displaying in the tag results, so I changed slider’s
($my_page == 1)
to(is_front_page() && $my_page == 1)
as well and now it’s flawless.I couldn’t express my graditude. I spent days worrying about this…
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpHeh, it’s working now! Thanks very much!
only the tags are still broken.
when i try f.e. https://www.example.com/tag/video/
and no post on the first page is tagged with video, i get a blank page – there’s not even the message like “sorry, but you’re searching something that is not here”, that i get if the tag was not used at all..can i make something like tag.php, like what you can do with categories?
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpyes, the slider is fine…
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpsame problem…
seems $post_count and $my_post_count are working too, they just work somehow for the whole index and not only for the first page of the index…Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpAlso tags were not working properly with that line. When I tried to display posts with tag, that was used in a post, that was not on the first page, I got an empty page.
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.php10 posts on every site….
so on the first page is slider(posts ##1234] and first 10 posts (##12345678910), second page is working…Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpthanks for your help!
the first page seems allright now, but i’m getting the second page blank – no posts, only navigation buttons in the content
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpi tried something with query-post, but using offset always breaks my pagination…i know it’s a known issue of wordpress, so i tried to implement some solutions i googled, but i’m obviously doing something wrong, because i can’t dela with the broken pagination…
can somebody please help me implement offset=5, showpost=6 for the first page for my theme?
Forum: Fixing WordPress
In reply to: display text only when custom field is filledit’s working, thanks very much
Forum: Fixing WordPress
In reply to: setting fifth post as first on index.phpok, here’s my index.php
i’m glad for any help