Stef Verbeeck
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Category page won't show all postsI am using a custom theme: built by copying the twentythirteen folder and changing CSS and template files. Basics are the same, as is functions.php.
Code for said category.php where the problem occurs is in the pastebin link above. It is sort of a copy-paste of the original template, just different layout to look more like my index.php code.
Forum: Fixing WordPress
In reply to: Category page won't show all postsHi Michael,
I have deactivated all my plugins, no change whatsoever.
Only thing added to my functions.php is the code to return the number of Twitter followers using the Twitter API – seems non-related.
I’m guessing this is a theme specific issue then?
Forum: Fixing WordPress
In reply to: Category page won't show all postsI pasted my relevant code from category.php in a pastebin.
The page in question (Dutch) can be found here. Clicking on the categories in the sidebar to the right will show you the problem.
Forum: Fixing WordPress
In reply to: Category page won't show all postsHi Michael,
I just checked: it doesn’t happen whe I switch to the default twentyfifteen theme, so it must be an issue with my custom theme. However, I based that on the code of the twentythirteen category.php page.
When I change to the author archives, It only displays one post in stead of all in my custom theme, alltough I didn’t change the code for that template (original twentythirteen file).
Forum: Fixing WordPress
In reply to: Query posts shows only 2 postsThanks Alchymyth!
That worked like a charm. My code now looks like this:
<?php $args = array( 'posts_per_page' => 20, 'post_type'=> 'clients', 'category' => 19 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <div class="client_column"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> </div> <?php endforeach; wp_reset_postdata();?>
Thx for your help.
Forum: Fixing WordPress
In reply to: Custom RSS feed for specific author and post typeMeanwhile, I tried using this plugin: https://www.ads-software.com/plugins/show-website-content-in-wordpress-page-or-post
According to my host, I meet the technical requirements, but it won’t work. Any other suggestions?
Forum: Plugins
In reply to: [mTouch Quiz] Add a link to final results pageHi gmichaelguy,
That’s the thing. Layoutwise, I would prefer to have this link (in our case a banner div) to be displayed at the bottom of the page, underneath the in/correct answers overview, not in the rounded corner div at the top of the page.
Forum: Plugins
In reply to: [mTouch Quiz] [Plugin: mTouch Quiz] Change languageHi there,
Did you ever manage to change the language? I have the exact same question.
Forum: Fixing WordPress
In reply to: Set number of posts for custom taxonomyQuick update: removing the first part seems to fix the fatal error:
function my_post_queries( $query ) { if(is_tax()){ // show 50 posts on custom taxonomy pages $query->set('posts_per_page', 50); } } add_action( 'pre_get_posts', 'my_post_queries' );
Forum: Fixing WordPress
In reply to: Set number of posts for custom taxonomyThanks keesiemeijer for your input.
Unfortunately, when I insert this in my functions.php; reloading the page displays following error:
Fatal error: Call to undefined method WP_Query::is_main_query() in /var/www/html/wp-content/themes/v21/functions.php on line 80
??
Forum: Plugins
In reply to: in_category only works in one categoryThanks alchymyth!
Your answer got me thinking, which eventually fixed this problem. I used the “is_category” function, however this only works for the parent category. This means my nav disappeared as soon as you would navigate to a child category.
Using the great technique I found here, this problem was resolved by adding a little snippet to the functions.php file of my theme.
Forum: Plugins
In reply to: in_category only works in one categoryAs my code was removed, check pastebin for the category.php snippet.
Forum: Fixing WordPress
In reply to: Plus sign in wp_list_pagesFixed it after all.
The trick is in replacing the + with it’s PHP equivalent “%2B” as such:
<?php wp_list_pages('title_li=&child_of=987&link_before=<span class="sideplus">%2B</span>'); ?>
Forum: Themes and Templates
In reply to: Show custom field of a subpage on a pageMaybe there is some other way to do this?
In fact, I only want a list of subpages, displayed on a page. It should show the subpage title, permalink and description.
Thanks in advance for any help.
Forum: Themes and Templates
In reply to: Show custom field of a subpage on a pageYes, “description” is the right key. It is the name of the default field I use. I think it might be the combination with the other bit of code, possibly I need to retrieve this meta some other way?