Front-end Editor: Version 0.5

Front-end Editor in action

Front-end Editor is a plugin that lets you edit posts or pages directly from your site. No need to load the admin backend just to correct a typo.

To edit something, just double-click it.

Current Features

  • edit title or content
  • works for posts and pages
  • should work with any theme
  • lightweight

This is just the first version and more features are still to come. What I have in mind:

  • include WYSIWYG editor
  • edit tags and/or categories

Hide Spam Count: Version 1.0

Whenever I visit my site’s dashboard, the first thing I see is the bold red Spam count.

Instead of wasting time deleting spam comments, I prefer to let Akismet do that automatically, so I don’t need to see how many spam comments there are.

This little plugin simply hides that part:

Demo

Link-uri fără diacritice în WordPress

Update: Acest defect a fost în sfârșit rezolvat și nu ar trebui să mai facă probleme în WordPress 3.1 (care ar trebui să apară prin decembrie, 2010).

Mi-ar place ca toate lucrurile să meargă, pur și simplu. Din păcate, asta nu se întâmplă aproape niciodată, mai ales când vine vorba de diacritice și mai ales dacă ne uităm la diacriticele românești.

Deoarece URL-urile cu diacritice cauzează diferite problem în motoarele de căutare și nu numai, WordPress le convertește automat.

Din păcate, literele ‘ț’ și ‘ș’ nu sunt convertite în ‘t’, respectiv ‘s’.

Există însă o soluție destul de simplă: În fișierul functions.php al temei de WordPress folosite de tine, adaugă următoarele linii de cod:

add_filter('wp_insert_post_data', 'caractere_problema');
function caractere_problema($data) {
	if ( empty($data['post_name']) )
		$name = $data['post_title'];
	else
		$name = $data['post_name'];
 
	$rep = array(
		'%c8%9b' => 't',
		'%c8%99' => 's',
		urldecode('%c8%9b') => 't',
		urldecode('%c8%99') => 's',
	);
 
	$new_name = str_replace(
		array_keys($rep),
		array_values($rep),
		$name
	);
 
	if ( $new_name == $name )
		return $data;
 
	$data['post_name'] = $new_name;
	return $data;
}

Asta e tot.

Custom Field Taxonomies: Version 1.2

Another substantial update for y’all:

Revamped Admin Page

New CFT Admin Page
The new admin page is built up entirely of shiny 2.7 style boxes. They work just like the ones on your dashboard.

The admin page has been moved to Posts -> CF Taxonomies for easier access. There is also a new feature to add default values.

Enhanced sorting

Version 1.1 introduced an option to display posts with a relevance less than 100%. Now you have an extra option to also adjust the relevance based on the order of the query vars in the URL.

For example, if your URL is http://example.com?foo=xxx&bar=yyy, posts that don’t have bar=yyy, but have foo=xxx will rank higher than those that have bar=yyy but don’t have foo=xxx.

Important bugfix

In earlier version, if you used query_posts() anywhere in the template file that was used by the plugin, you would get all kinds of errors. Not anymore:

Now you can use query_posts() and even have multiple loops on the same page and CFT will only modify the main loop.

Custom Field Taxonomies: Version 1.1

This version brings several important new features:

Wildcard support

http://example.com/?field=abc* will fetch all posts that have a meta key field with any value beginning with abc: ‘abc’, ‘abcd’ etc.

The ‘*’ character can appear multiple times, anywhere: http://example.com/?field=*ab*c*&another=foo*bar

Relevance:

There’s a new checkbox in the settings page that allow the following behaviour:

http://example.com/?key1=value1&key2=value2 will fetch posts that have at least one of those key=value pairs.

There is also a new template tag that displays the relevance for each post: meta_relevance()

Enhanced search & replace

Now you can select in which meta taxonomy you want values replaced. This allows for better control over your custom fields.

Important: The parameters for meta_cloud() have changed. Check template-tags.php to learn more.

Monitor support topics for your WordPress plugins

If you are a WordPress plugin author and have several plugins hosted on WordPress Extend, read on.

You have probably noticed that on the sidebar of each plugin page there is a list of topics related to that plugin. If you want to monitor these topics, you would normally have to subscribe to a new feed each time you release a new plugin.

Wouldn’t it be nice if you had a single feed which would contain all topics related to any of your current or future plugins hosted on Extend?

Well, now there is such a feed. It is generated by Yahoo Pipes and all it needs to run is your profile name, which is the last part of this URL:

http://wordpress.org/extend/plugins/profile/yourname

And here it is: WP Plugins Support.

Custom Field Taxonomies: Version 1.0

Several improvements  in this release. Be sure to upgrade.

  • meta_filter_box() now comes with autosuggest.
  • added $relative parameter to meta_cloud(). Note that the arguments are now splitted in $metaArgs and $cloudArgs.
  • relative links are disabled for posts, pages and attachments, because you would get a single item anyway
  • fixed issue with blogs that have a static page as the front page
  • fixed issue with get_meta_url()
  • to avoid unexpected behaviour, you can’t register taxonomies with keys used by WP (‘p’, ‘s’, ‘cat’ etc.)

Custom Field Taxonomies: Version 0.9

Meta Filter (search box)

In version 0.9 I finally included an advanced meta search box. It can be easily styled and you can even have several boxes on the same page.

The code to display it is simple: <?php meta_filter_box() ?>.

If you don’t want to use a certain key as a filter, you can write

<?php meta_filter_box($exclude = array('key1', 'key2')) ?>

Make sure your theme has wp_footer() written somewhere in footer.php.

Smarter Navigation: Version 1.0

The default previous_post_link() and next_post_link() have an option to restrict adjacent posts to the current category. This plugin takes one step further:

If you visit an archive page (category, tag, date, author, search etc.) and then visit a single post from that page, the previous_post_smart() and next_post_smart() will point only to the other posts in that archive page.

This is particularly useful for photoblogs (that’s where I use it).

If there isn’t an adjacent post, it will use the normal template tags.

Custom Field Taxonomies: Version 0.8

Custom Field Management

Another update for this plugin: Added a custom field management section in which you can replace custom field keys or custom field values. Maybe an option to delete certain custom fields based on key or value? We’ll see.