lola rennt
Forum Replies Created
-
Forum: Plugins
In reply to: [Hungred Post Thumbnail] Alternate aspect ratio of thumbnails?Any ideas on how to do this?
Forum: Themes and Templates
In reply to: Sidebar as a static archive indexI managed to solve the problem with the template tag
get_posts
which succesfully renders an archive list of all posts. And it is customizable with simple tags. Perfect!
Here is the code:<?php $args = array( 'numberposts' => 100, 'orderby'=> 'post_date'); $postslist = get_posts( $args ); foreach ($postslist as $post) : setup_postdata($post); ?> <div> <?php the_date(); ?> <br /> <?php the_title(); ?> <?php the_excerpt(); ?> <?php the_category(' '); ?> </div> <?php endforeach; ?>
Forum: Fixing WordPress
In reply to: Archive Index with Posts in SidebarHi Patrick,
have you found a solution to this problem? I have exactly the same problem but found no solution yet.
Greet, LaurenForum: Themes and Templates
In reply to: Show taxonomies in admin/ Edit Posts areaI am not concerned about the metaboxes in the Edit Posts area. I only want the post overview area to display the custom taxonomies. (Right now I am only able to see regular tags which do not belong to any taxonomy).
So far as I know, Justin did not cover this topic.Forum: Themes and Templates
In reply to: Get taxonomy categories as linksHi Yeeloon,
if it is merely how to solve the 404 error when displaying a specific taxonomy than you can find the answer on this post about the same topic.
Hope this solves it for you!
Forum: Themes and Templates
In reply to: How to visit a taxonomy archiveHi magaworks,
the 404 problem could be solved by updating your permalinks – at least that’s what worked for me.
Here you see how you can update them. I chose to set them in archive mode – month and name – and that worked perfectly!Forum: Plugins
In reply to: Plugin for multiple thumbnails for one post?That would be great! Need that too. Any code/plugin that does this?
Thanks!!
Forum: Themes and Templates
In reply to: How to visit a taxonomy archiveOkay now I finally understand why it wasn’t working. I expected the taxonomy-people.php to be rendered when someone visits https://wordpres/people/ – but it isn’t meant for that. taxonomy-people.php is the template for a term within the people taxonomy – not the taxonomy itself.
I’ve now made a custom _get variable containing the taxonomy name – I can then get all the terms that belong to that taxonomy and loop through them to render a list of posts that have a tag that belongs to that taxonomy.
I still wonder if there isn’t a standard way to do this – but my hack works : )
Thanks!
Forum: Themes and Templates
In reply to: How to visit a taxonomy archiveYes, well I was aware of this… and that’s why I don’t understand.
Wordpress can call this taxonomy-{taxonomy}-{term}.php template of mine with success but not this taxonomy-{taxonomy}.php template. Then I get a 404 error…This works https://wordpress/location/sint-niklaas/
but nor this https://wordpress/location/Maybe my code on that page is not right? I just copied the page.php template for this template. Is there some reference somewhere on how to build this exact template?
Forum: Themes and Templates
In reply to: How to visit a taxonomy archiveThanks for your help Michael!
Somehow I think this is just a little bit too complicated for what I am trying to do.
Isn’t the taxonomy-tax.php already included in the WP structure? For me it should work like category.php works… or tag.php. But maybe I am missing sth here?Forum: Themes and Templates
In reply to: Get taxonomy categories as linksDisplaying the specific taxonomies is solved now! Updating the permalinks worked good for me… as the default setting for permalinks missed a slash and didn’t provide the correct url.
Now I can access this wordpress/taxonomy/term/
But now I want to have a specific page for each taxonomy… so I made a taxonomy-tax_name.php file… but I am not able to link to this file…
and typing this url wordpress/taxonomy/ gives me a 404 errorWhat am I doing wrong?
Anyone?
Thanks!Forum: Themes and Templates
In reply to: Question on theme set upWould I not better use tags for this? For now I used this kind of taxonomy based on this tutorial.
https://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28
Although I must say I miss some coverage ont his topic.Forum: Themes and Templates
In reply to: Question on theme set upOkay, thank you for this help.
I haven’t exactly gone deep into it yet. But now I made custom taxonomies. Each post-title has three fields for custom taxonomies.
I want these to be alphabetically rearrangeable.Woul you rather advise custom fields for this?
Forum: Themes and Templates
In reply to: Question on theme set upThat does seem like a good option. But what exactly do you mean by oderby capability of the loop? Because I think that is my next issue.
I have some custom taxonomies and I would like the list to be rearrangeable on either kind of taxonomy (alphabetically).
If I get that to work, that should work fine with an accordion probably?Thanks already!
xForum: Themes and Templates
In reply to: foreach get category link<?php foreach((get_the_category()) as $category) { $category->cat_name . ' '; } ?><a href="<?php echo get_category_link(get_cat_id($category->cat_name)); ?>"><?php echo $category->cat_name ?></a>
This worked for me!