travis182
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Not having multiple tagsThanx for the (quick) reply, but unfortunately it’s not working.
This:
[loop type="post" taxonomy="category" value="x,y" compare="and"] [field title-link] [/loop]
…doesn’t give a result to start with, while there are posts in both categories.
Forum: Plugins
In reply to: [FeedWordPress] Native posts duplicatedI’m not using any filters, but I still have the problem with the duplicate posts also.
Forum: Plugins
In reply to: [FeedWordPress] Feed RSS with image and insert it as Featured ImageForum: Plugins
In reply to: [Qtranslate Slug] 404 on postsNobody a clue? It seems like all the links use the correctly translated url, but the page is still visible on the non translated url.
Forum: Plugins
In reply to: Qtranslate clashes with WordPress 3.9.1Thanx Michwl, that one is working indeed!
Old, but it might come in handy. Thanx!
Forum: Plugins
In reply to: [Plugin Woocommerce] – Default quantity grouped productNobody? I was hoping this would be a minor addition to my functions.php file…
Forum: Themes and Templates
In reply to: [Virtue] Woocommerce Product images croppingYep, that fixed it for me. Thanx.
Forum: Plugins
In reply to: [Plugin: Buddypress] Translate time indicationOk, fixed. Kinda foolish, but I added the translation for these words in the .po file, but didn’t change the .mo file.
Poedit did the trick :-SForum: Fixing WordPress
In reply to: Sticky posts on top if anyThanx a bunch, that got me to the fix!
Forum: Plugins
In reply to: list posts in ALL current categoriesI have a menu-structure with a parent category 1, child categories 1a, 1b, 1c and finally the actual blogposts in those combination of categories.
So the code has to work on the archive pages, but also on the page of the blogpost. I now use this code, which works fine for me. Thanx for the help.<?php if( is_category() ) : //because this makes only sense in a category archive page $cats = array(); $cat = get_query_var('cat'); do { $cats[] = (int)$cat; $cat = get_category($cat)->category_parent; } while($cat); $args = array( 'category__and' => $cats, 'orderby' => 'post_date' ); $posts = get_posts( $args ); ?> <ul> <?php foreach($posts as $post) { ?> <li><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title('')?></a></li> <?php } wp_reset_postdata(); ?> </ul> <?php elseif(is_single() ) : //on single blogpost-page ?> <ul> <?php $category = get_the_category(); //get first current category ID $this_post = $post->ID; // get ID of current post $cats = wp_get_post_categories($post->ID); $args = array( 'orderby' => 'post_date', 'category__and' => $cats ); $posts = get_posts( $args ); ?> <?php foreach($posts as $post) { ?> <li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title('')?></a></li> <?php } wp_reset_postdata(); ?> </ul> <?php endif; //ends: if( is_category() ) ?>
Forum: Plugins
In reply to: list posts in ALL current categoriesThanx for the tip, I’ll look into that. Your example is working for the post-pages and for the …category/aaa/bbb/ pages, but is giving a problem with the …category/aaa/ pages, because it takes the second category from the blogposts on that page and in that case I do want to show all the blogposts in category aaa. Because of the pagination, page 1 consists of only aaa/bbb posts, but the second page also shows aaa/ccc post, so in the list I would like to see aaa/bbb aswell as aaa/ccc, but now the list changes along with the pagination.
I hope you still follow what I’m saying.Forum: Fixing WordPress
In reply to: Exclude Specific Page(s) from the search resultsI made a secured part of my website. I have a login-page that has to be excluded from the search results, but also all of it’s (future) children. Is there an easy way to exclude this certain login page and all of it’s (grand)children without having to add the child-ID to the template every time I make a new secure page?
Forum: Fixing WordPress
In reply to: Exclude a few pages in search results?What if I wanted to exclude a certain page from the search results, but also all of the future children without modding the search.php every time I add a childpage?