adastra
Forum Replies Created
-
I got this to work by adding an is_tag() to the code:
add_action( 'pre_get_posts', 'show_podcast_episodes_in_archives', 10, 1 ); function show_podcast_episodes_in_archives ( $query ) { if ( is_admin() || ! $query->is_main_query() ) { return; } if( is_author() || is_tax( 'post_tag' ) || is_tag() ) { $post_types = ssp_post_types(); if( ! empty( $post_types ) ) { $post_types[] = 'podcast'; $query->set( 'post_type', $post_types ); } } }
Forum: Plugins
In reply to: [Seriously Simple Podcasting] RSS feed limitThis works for /feed/podcast/ but not for /podcast/feed/
Is there any way to make it work for both?
Forum: Themes and Templates
In reply to: [Stargazer] How do I remove to "up" triangle in the menu?I solved the problem by removing the following code in the style.min.css
.menu li>ul::before { content:''; position:absolute; top:-6px; border-width:6px; border-style:solid; border-top:0; } .ltr .menu li>ul::before { left:24px; } .rtl .menu li>ul::before { right:24px; } .menu li li>ul::before { top:22px; border-top-width:6px; border-top-style:solid; } .ltr .menu li li>ul::before { left:-6px; border-right-width:6px; border-right-style:solid; border-left:0; } .rtl .menu li li>ul::before { right:-6px; border-right:0; border-left-width:6px; border-left-style:solid; } .menu li { display:inline-block; position:relative; } .menu li li { display:block; } .menu-items li li a { -webkit-transition:all 0 ease 0; -moz-transition:all 0 ease 0; -o-transition:all 0 ease 0; transition:all 0 ease 0; }
I updated to the lastest version yesterday and I now see that infamous service box, etc.
I get as far as Step 3 – I don’t see a “services” box anywhere. Where can I find it?!
Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthI’m still having the same problem. I’ve tried
wp_reset_query();
,rewind_posts();
andwp_reset_postdata();
, but nothing helps. Still the same weird phenomenon.Forum: Hacks
In reply to: Adding a sort function to the author listNobody any ideas? I could easily do a sort function with jQuery, but I really don’t want to, considering the list includes 1500 items…
Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthI’ve also tried completely replacing the part of the code which loads my page excerpt before the posts loop with a “manual” SQL query. The
<!--more-->
then works, but it doesn’t display the “read more” links – neither withthe_excerpt()
nor withthe_content()
*headdesk*
Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthIt also doesn’t work when I replace
get_template_part('loop', 'index');
with it’s equivalent from the loop.php. I’m out of ideas. Is there anything else I can try?Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthHmmpf, still not working ??
I’m very clueless…Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthStill no luck ??
When I remove the query_posts completely, I get the same page as the one I’m querying for my “intro div”. I assume it’s something to do with that, because when I remove all the code in the intro div, it works fine.
Do I have to tell query posts something more specific that it should query posts for the index?!
The code is here: https://pastebin.com/npPCZ60Z
Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthI think I just figured out that the problem is somewhere in my modified index.php, because when I replace the modified index with the default twentyten one, it works fine. However, I can’t find what’s wrong with it..?!
[code moderated according to Forum Rules - please use the pastebin]
Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthThanks!
Unfortunately
is_home()
doesn’t do any difference to my template. If I add it or replaceis_front_page()
with it I’m still not seeing my custom excerpt (the content before the<!--more-->
tag in my post), neither when I usethe_excerpt()
nor when I usethe_content()
…Forum: Themes and Templates
In reply to: more shortcode as excerpt for Twentyten instead of fixed lengthIt’s working on category pages, but not on the index page. This is the code where the code for the index page comes from:
<?php if ( is_front_page() || is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> <div class="entry-summary"> <?php if ( has_post_thumbnail() ) { ?> <div class="post-image"><?php the_post_thumbnail( 'full' ); ?></div> <?php } ?> <?php the_excerpt(); ?> <div class="clear"></div> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( '<span class="meta-nav">Continue reading</span>', 'twentyten' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?>
When I change the_excerpt() to the_content(), or when I remove is_front_page(), I ALWAYS get the entire entry on the front page and not my custom excerpt.
Forum: Themes and Templates
In reply to: Using the more tag with Tweaker2It didn’t work for me in twentyten – it shows the entire content instead of just the part in front of my <!–more–> tag. Why’s that?