fsnelting
Forum Replies Created
-
Forum: Plugins
In reply to: count by categoryThanks mfischer2! This also works:
function counting() { global $wpdb; echo $wpdb->get_var("SELECT count FROM term_taxonomy WHERE term_taxonomy_id = 'your_category_id'"); }
But must confess I am a bit lost on how to only count posts that were published.
Forum: Fixing WordPress
In reply to: Separate Category List by Parent CategoryI have been looking for the same thing for a long time. After much trial and error, here is a solution that works well for me. Pretty code and no plugin needed ??
<?php foreach((get_the_category()) as $cat) { if ($cat->category_parent == "1234") { echo '• <a href="?cat=' . $cat->cat_ID . '">' . $cat->cat_name . '</a>'; } } ?>
Where 1234 is the ID of the category parent you want to display children of.
Thanks everyone at this thread for showing me where to look.
Forum: Fixing WordPress
In reply to: Permissions on thumbnail vs. normal imageExactly the same here. I’m upgrading to Ella now, hoping the problem is fixed in the mean time…
Forum: Plugins
In reply to: How to hide the excerpt?Yes, that is the idea! When I add
<!--more-->
tags manually, html tags are not stripped from the excerpt — It does not really matter whether I usethe_content()
orthe_excerpt()
. But I still do not understand how to exclude this part from the single page views…
hmmm.Forum: Themes and Templates
In reply to: IE is Cascading Posts (?? Likely CSS problem)I think there is a problem with your box-width (Explorer has a particular non-standard way to interpret padding and width so the total width of sidebar and main column is too large and the sidebar column is pushed below your main column as a result). Make #page in your css file wider, or #sidebar less wide. Usually does the trick. Or look here: https://tantek.com/CSS/Examples/boxmodelhack.html
Forum: Plugins
In reply to: How to hide the excerpt?here’s how the blocks on the front page are made:
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="box" id="post-<?php the_ID(); ?>"> <div class="<?php echo c2c_get_custom('style');?>">
<h2><a>"><?php the_title(); ?></a></h2>
<?php the_content(''); ?><div class="clear"></div></div></div>
<?php endwhile; ?>
Forum: Plugins
In reply to: How to hide the excerpt?There’s a single.php but this page only refers to
the_content()
…this is why I thought it would make sense to use
the_excerpt()
; I thought there would be a tag likethe_rest()
??Maybe I should have used custom fields instead? (hmm. not so user friendly to have to put content in these)
Forum: Plugins
In reply to: Showing custom field dataWhat if you would use the get_custom plugin to echo the information (https://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/) and than use css drop down menus (https://www.alistapart.com/articles/dropdowns/) to reveal or hide the info?
Femke
Forum: Plugins
In reply to: How to hide the excerpt?Oh… sorry, HandySolo!
here’s the page with the excerpts:
https://www.geuzen.org/testand a few of these excerpts link to single pages saved in wordpress, such as:
https://www.geuzen.org/test/?p=42The small image + the text “Given today’s political climate we’ve decided to exhume this classic project” is redundant on the zoomed-in page, so I am looking for ways to exclude that part.
Hope this is clearer?!
Femke