shiningpathos
Forum Replies Created
-
I have updated and this still doesn’t work for me. The button keeps showing up even after it’s cycled through all the posts. When I click it, it loops back and loads posts from the beginning which is confusing.
I also get zero posts at first, until I hit the Load More button. Here’s the code I’m using:
<?php echo do_shortcode("[ajax_load_more button_label='Load More' posts_per_page='2' category='daily-feed' pause='true' scroll='false']"); ?>Forum: Fixing WordPress
In reply to: using wp_tag_cloud with custom taxonomyThanks. Looks like this will work –
<?php global $post; $terms = get_the_terms( $post->ID, 'team_members' ); $tag_list = implode(',', wp_list_pluck($terms, 'term_id') ); $args = array( 'taxonomy' => 'project_services', 'separator' => ', ', 'include' => $tag_list ); wp_tag_cloud( $args ); ?>Forum: Plugins
In reply to: [HTML5 jQuery Audio Player] javascript conflict with flyout menusWould you mind please having a look? This is something I need to show to a client but cannot until the dropdowns work. I’ve never had any clashing between enqueued jQuery and plugins until now. Thank you.
Forum: Plugins
In reply to: [HTML5 jQuery Audio Player] javascript conflict with flyout menusThanks. I’m afraid it’s not working though. As you can see, I added jQuery above wp_head per the article and removed the ajax/google call. Could you have a look at the source code on the homepage and tell me if everything is being called the in proper order?
Forum: Plugins
In reply to: [HTML5 jQuery Audio Player] javascript conflict with flyout menusThanks!
1 & 2.
Ok I have restored the call to ajax.googleapis in functions.php, and the player works but not the flyout. But at least you can see what’s happening. Up until now, I’ve had good luck using this in functions.php:wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', null, '1.7.2', false);3. Yes
4. Should be clean now
5. Installed, but didn’t seem to fix things.
Forum: Fixing WordPress
In reply to: Need help numbering archive resultsAnyone know how to do this?
Forum: Fixing WordPress
In reply to: how to query post types with different taxonomies?Anyone know why this code wouldn’t work?
Forum: Fixing WordPress
In reply to: why is the_excerpt now showing up in this context?Thank you!
Forum: Fixing WordPress
In reply to: why is the_excerpt now showing up in this context?That works, thanks much!
Can you tell me why?
Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Doh, never mind. The $cat is unnecessary.
Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Also, could anyone tell me how to add the category description for each? I added this-
<?php echo category_description($cat);?>That only seems to work if I replace $cat with a specific ID number. But I need it to by dynamic. Thanks!
Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Thanks – but where would I include that?
Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Heh, actually wait, I’ve got one more question –
I want to use this code in various places throughout my theme, so the “child_of=17” parameter is not going to work. What’s a more generic way to say, “Child of the current page?”
Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Got it –
<h2><a href="<?php echo get_category_link($cat);?>"><?php single_cat_title(); ?></a></h2>Forum: Fixing WordPress
In reply to: "Give me links to every subcategory of the current page category…"Shucks, just figured it out –
<?php $categories = get_categories("child_of=17"); foreach ($categories as $cat) { ?> <h2><a href="<?php get_category_link(); ?>"><?php single_cat_title(); ?></a></h2> <?php endwhile; ?> <?php }?>But: the only issue is that get_category_link is wrong here. It just links to the parent. I need that h2 to link into its respective child category. Any clues?