clarke1866
Forum Replies Created
-
Forum: Plugins
In reply to: Using loops and query_postsForum: Plugins
In reply to: Using loops and query_postsI’ll give it a whirl, that sounds like a much better idea than what I had in mind! Will post results
Forum: Plugins
In reply to: The Perfect Image Plugin!Clear
CSS clear is a useful property which gives webmasters the ability to put objects below another. Commonly used with floats, clear gives us the power to make creative designs and add flavor to the web.
Clear left, right or both
You may use clear: left;, clear: right;, or clear: both;. When using clear: left; the element will stay clear of the other elements left of it putting it below the others. When clearing both, it makes the element go below all elements above it.Forum: Plugins
In reply to: The Perfect Image Plugin!Don’t you need to add the clear:left component too?
Forum: Plugins
In reply to: multiple authors on a single post?Just read this in the codex:
Each user can edit/modify posts and options for other users whose level is lower than his or her own. The main differences occur between levels 0 and 6 and at level 8. User Levels 9 and 10 have the same privileges but are different in rank, i.e. a user of level 10 could edit information about a user of level 9, but not vice versa.
Forum: Plugins
In reply to: multiple authors on a single post?Can’t you just change
|| ($author_data->user_level >= 10) ) {
to
|| ($author_data->user_level >= 9) ) {
Which would mean, all 10’s can edit 10s and 9s, and all 9’s can edit 9’s? Or is doing this bad somehow? I just tested it on my dev wp, and it seems to work…
Forum: Plugins
In reply to: A better way of showing subset Categories?Thanks for the advice, I’ll see if I can use the child_of property.
Forum: Plugins
In reply to: Using get_the_categoryMaybe you should look at this post?
Forum: Fixing WordPress
In reply to: Inserting id=” ” dynamicallyI too am looking into a similar function. So far I have found a way to get all the ID’s associated with the post you are currently looking at. But I’m not sure how to get all the categories associated with the current category. You might be able to do it with a huge list of if statements ie:
if this is cat 1 — then show cat 2,4,6,16
else if…Seems to crazy to do that though.
Forum: Plugins
In reply to: Using get_the_categoryI don’t know what you are doing, so I can only tell you what I am doing in more detail in hopes that it helps you. Here is my code again, with comments:
foreach((get_the_category()) as $cat) {
$max_cat_list .= $cat->category_id . ',';
}The english translation of the above would be: for the current post, record all the categories it belongs to in the variable max_cat_list.
Then we use the coffe to code get recent posts plugin to select 5 recent posts. Notice “$categories = $max_cat_list,” meaning, only get the recent posts from the list identified from max_cat_list. Here is the code I used for that specific plugin (not that this code doesn’t do any work, it just calls a function that does all the work):
c2c_get_recent_posts ($num_posts = 5,
# $format = ” %post_URL%
“,
$categories = $max_cat_list,
$orderby = ‘date’,
$order = ‘DESC’,
$offset = 0,
$date_format = ‘m/d/Y’,
$authors = ”,
$include_passworded_posts = false).I hope that helps! I suggest you try the coffee2 code plugin
Forum: Plugins
In reply to: Gallery 2 IntegrationDang! Do tell (when you get the chance!).
Forum: Plugins
In reply to: Using the_content to replace textThanks for the tip! Do you think I can use content_save_pre in the example posted above in place of the_content to filter foo and bar?
Forum: Fixing WordPress
In reply to: Question on Technorati tags and code in my postI also have noticed funny technorati stuff, seems to work only 100% when using the pingomatic or at the site itself.
Forum: Fixing WordPress
In reply to: Question on Technorati tags and code in my postTry bunnies techorati tags, or something to that effect. Its in the wp-plugins repository. I use it and it works well.
Forum: Plugins
In reply to: Using get_the_categoryYour setup is different than mine, in my template, I have a single.php page that takes care of viewing a single post. In it, there is a call to get the comments.php, which loads up all the comments and stuff. I have placed my code after the comments include, so that the recent posts show up after the comments. You must have the coffee2code plugin installed and activated. It is here