baduist3
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Single Category Title Outside The LoopCool bit of code.
How do I make it show the last category out of two/three?
Basically I’m using parent categories for a lot of posts, but some categories have more than one parent category, and I just want to show the child category without it’s parents…
Forum: Fixing WordPress
In reply to: Count posts in page (to determine legnth of text?)Thanks, this is exactly what i was looking for.
This is how i used it, if anyone needs this:
<?php
$howmany = count($posts);
if ($howmany >= 5) { ?>
Some HTML code here...
<?php };?>
Forum: Themes and Templates
In reply to: customizing the archives pageThe link on “3” is broken… Also i could not find relevant information on the Template Hierarchy page…
Is it possible to make archive or search results pages show more posts just by editing the search.php / archive.php files of the template?
Forum: Fixing WordPress
In reply to: Paged posts?Thanks man. i duno why i couldn’t find it…
Forum: Plugins
In reply to: Auto publish user-submitted draftsOK. the TDO Mini Forms plugin has a file named Form.php (not editable via wordpress admin, need to access the file through FTP).
On line 215, change ‘draft’ to ‘publish’, and all post will be published automatically, no need to approve manually.Have fun,
Baduist3Forum: Installing WordPress
In reply to: ‘delete post’ on front end?ok.
This code in the loop seems to do the trick:
<?php if (current_user_can('edit_post', $post->ID)) echo "<a href='" . wp_nonce_url("/wp-admin/post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "'>Delete post</a>" ?>Thanks whooami!
Forum: Installing WordPress
In reply to: ‘delete post’ on front end?Cool.
i copied this code from there, but instead of deleting the post, i get a “Sorry, no posts matched your criteria”.<?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "' class='delete' onclick=\"return deleteSomething( 'post', " . $id . ", '" . js_escape(sprintf(__("You are about to delete this post '%s'.\n'OK' to delete, 'Cancel' to stop."), get_the_title())) . "' );\">" . __('Delete') . "</a>"; } ?>i was using it in the loop, if it makes any difference.
Forum: Fixing WordPress
In reply to: comments on index?ok, was hard to search exactly what i meant, but i found a solutiond finally. it’s here:
http://wordpress.org/support/topic/68826?replies=9#post-362846Forum: Plugins
In reply to: Idea: paid plug-in request board?well, i’m talking about a specific wordpress related site.
And the wordpress community might benefit from the ransom method.
Forum: Plugins
In reply to: Idea: paid plug-in request board?the concept is simple:
1.
whenever u can’t find a plug in that does what you need, you can post the required functionality and what you expect from the plugin.2.
then coders can look at your post, and give you a price offer for that plug-in, as a ‘ransom’.3.
If more people need the same plugin, they can also donate money for it, and share the load. or you can just pay the whole amount yourself.4.
Once the ransom is met, and the money paid, the coder makes the plugin and posts it (for free?)Any thoughts?