alains
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Order of Page Links – Side Baror you have a nice plugin to solve things with drag&drop user friendly solution:
http://wordpress.org/extend/plugins/pagemash/Forum: Fixing WordPress
In reply to: Highlight Current Category in Navbar on Single PageI have almost the same problem. When i am on categories current category is highlighted…when i go to single post the category is not “current-cat” anymore.
Is there a workaround to use “wp_list_categories” on single post to highlight current category or at least parent category in which the post is?
Forum: Fixing WordPress
In reply to: subcategory dynamically matching parent category templatesForum: Plugins
In reply to: Simple Tag – Remove beetween two wordsGreat! Thanks.
Forum: Plugins
In reply to: Simple Tag – Remove beetween two wordsSorry! ‘nbsp;’ was striped out. So it should read ‘Simple Tag – Remove nbsp; beetween two words’.
Forum: Fixing WordPress
In reply to: Add Image Custom Field To RSS FeedOk I’ve tried (the plugin from Kafkaesqui) to make it work with 2.31 …
Now it works except that it does not add custom fields value to existing content but the content is completely replaced by custom value field instead.
Here is the code…if someone can help.<?php /* Plugin Name: Custom to Feed Content Plugin URI: http://wordpress.org/support/topic/63420 Description: Append post custom fields to syndication content. Author: Kaf Oseo Version: 0.1 Author URI: http://szub.net Copyright (c) 2006 Kaf Oseo (http://szub.net) Custom2Feed Content is released under the GNU General Public License (GPL) http://www.gnu.org/licenses/gpl.txt This is a WordPress plugin (http://wordpress.org). */ function szub_custom2feed($text) { /* >> Begin user-configurable variables >> */ // $pass_keys - Array of allowed custom keys. Modify to your needs. $pass_keys = array('feedimg'); /* $list_mode - How to display your custom keys/values. Options are: 'ul' : Unordered list. 'ol-1' : Ordered (numbered) list (also: 'ol'). 'ol-A' : Ordered (lettered) list. 'dl' : Description list. 'p' : Individual paras (<p>customkey: customvalue</p>). 'tag' : Pseudo-tag format (<customkey>customvalue</customkey>). */ $list_mode = 'p'; // $sep - custom key:value separator character(s). $sep = ': '; /* << End user-configurable variables << */ $customtext = ''; if(is_feed()) { global $post_meta_cache, $wp_query; if ( $keys = get_post_custom_keys() ) { foreach($keys as $key) { if( in_array($key, $pass_keys) ) { foreach(get_post_custom_values($key) as $value) $customtext .= szub_line_mode($key, $value, $sep, $list_mode); } } if($customtext) { switch($list_mode) { case 'ul': $text = "\n<ul>\n$customtext</ul>"; break; case 'ol': case 'ol-1': $text = "\n<ol>\n$customtext</ol>"; break; case 'ol-A': $text = "\n<ol type=\"A\">\n$customtext</ol>"; break; case 'dl': $text = "\n<dl>\n$customtext</dl>"; break; default: $text = $customtext; } } } } return $text; } function szub_line_mode($key, $value, $sep, $list_mode) { switch($list_mode) { case 'ul': case 'ol': case 'ol-1': case 'ol-A': return "<li>$key$sep$value</li>\n"; case 'dl': return "<dt>$key$sep</dt><dd>$value</dd>\n"; case 'tag': return "\n<$key>$value</$key>"; default: //return "<p>$key$sep$value</p>"; return "<p>$value</p>"; } } add_filter('the_excerpt_rss', 'szub_custom2feed', 9); ?>Thx in advance.
Forum: Fixing WordPress
In reply to: Add Image Custom Field To RSS FeedTry this topic:
http://wordpress.org/support/topic/99432?replies=5Forum: Fixing WordPress
In reply to: Wrong alphabetic sorting with wp_tagcloud()So far…so bad 🙁
It seems that possible solutions found on the web and yours Otto42 were not able to solve this problem.I’m really pissed off as this means a “semi-functional” tag cloud.
I still don’t get it why “strnatcasecmp” is used for wp_tag_cloud() and not for the_tags() which is working perfectly with non-english characters.
But as usual I’m waiting for one WP code freak out there to see my SOS 😉
Forum: Fixing WordPress
In reply to: Wrong alphabetic sorting with wp_tagcloud()Thanks Otto42 for poining out a possible solution.
But it’s still interesting that the_tags() is working properly. Maybe if I try to find what is done there and then aply it to wp_tag_cloud()? But I’m not into PHP really …so I’ll try to find out and maybe actually solve it.
Of course if some PHP freak knows how to solve this…don’t be afraid 🙂Forum: Fixing WordPress
In reply to: pdfMaybe Flashpaper can help U.
http://www.adobe.com/products/flashpaper/Forum: Plugins
In reply to: Plug In To Change Post OrderAndreSC, come on save us 🙂
Forum: Fixing WordPress
In reply to: Wrong alphabetic sorting with wp_tagcloud()just a bump
Forum: Themes and Templates
In reply to: anyone recommend a ‘blank’ css file?Try “Dust-me selectors”. An add-on for Firefox that finds unused CSS.
Forum: Themes and Templates
In reply to: Seperate page width and CSSTry to add a new class (for example: .page) just in Page template (page.php in your theme dir). So you’ll be able to style Page without messing with the rest.
Just a note on why Page (with big P) to not counfuse others – http://codex.wordpress.org/Pages
Forum: Fixing WordPress
In reply to: Start Tag not validatingIf you use xhtml transitional or strict you have to “self close” img element.
Try adding ‘/>’ instead of just ‘>’ at the end of IMG tag.