Title: bmck's Replies | WordPress.org

---

# bmck

  [  ](https://wordpress.org/support/users/bmck/)

 *   [Profile](https://wordpress.org/support/users/bmck/)
 *   [Topics Started](https://wordpress.org/support/users/bmck/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bmck/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bmck/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bmck/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bmck/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bmck/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/bmck/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bmck/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp-includes translations.php error line 55](https://wordpress.org/support/topic/wp-includes-translationsphp-error-line-55/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/wp-includes-translationsphp-error-line-55/#post-1116891)
 * Never mind; translations.php was a red herring. I removed ‘Follower profile’ 
   due to abuse by spam followers, but still use the technique for the ‘Where’s 
   Bruce?’ Extra.
 * The fix is to properly encode what I am parsing from the Twitter profile i.e.
   $xml = htmlentities($xml);
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Is 0.5 compatible with WP 2.3.2?](https://wordpress.org/support/topic/is-05-compatible-with-wp-232/)
 *  [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/is-05-compatible-with-wp-232/#post-674330)
 * It is definitely compatible with 2.3.2; I just integrated it into my new site
   preferences panel.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [the_title vs the_title_attribute](https://wordpress.org/support/topic/the_title-vs-the_title_attribute/)
 *  [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/the_title-vs-the_title_attribute/#post-652975)
 * Thanks Adam; I put a custom function into the loop and tried out various adaptations
   of your code above in my theme’s functions.php file, but just couldn’t get it
   to work (I’m a PHP novice).
 * Adapting [this](http://signified.net/valid-social-bookmark-links-in-wordpress/)
   fix I tried the following:
 * `<?php _e(urlencode(the_title_attribute('echo=0'))); ?>`
 * It works (that is it satisfies “Check syntax” in BBEdit and Tidy; it’s worth 
   noting that the malformed URI fools the W3C validator – which is probably why
   nobody much cares!).
 * However, this encodes the spaces with “+”. For example the title of [this](http://www.bioneural.net/2008/01/06/from-protoaculous-to-jquery/)
   post, when I click “Send” (Actions box), becomes:
 * _From+Proto.aculo.us+to+jQuery_
 * I’d rather see:
 * _From Proto.aculo.us to jQuery_
 * Any further suggestions?
 * BTW the functions are defined in wp-includes/post-template.php in WP 2.3.2
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [the_title vs the_title_attribute](https://wordpress.org/support/topic/the_title-vs-the_title_attribute/)
 *  [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/the_title-vs-the_title_attribute/#post-652973)
 * I had some validation errors, and using the_title_attribute within anchors cleared
   these up. Shame, however, it doesn’t remove spaces. For example, this:
 * `<a href="mailto:?subject=<?php the_title_attribute(); ?>&amp;body=See:%20<?php
   the_permalink(); ?>Send</a>`
 * Might produce the following (improperly encoded due to spaces in title – as there
   nearly always are) URL:
 * `<a href="mailto:?subject=Oh no I have gaps&amp;body=See:%20http://...">Send</
   a>`
 * We need a parameter to make it produce valid anchors e.g.:
 * `<a href="mailto:?subject=Oh%20no%20I%20have%20gaps&amp;body=See:%20http://..."
   >Send</a>`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to restrict feed format choice](https://wordpress.org/support/topic/how-to-restrict-feed-format-choice/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/how-to-restrict-feed-format-choice/#post-524621)
 * Thanks Otto; I was hoping it would be that simple 😉
 *   Forum: [Your WordPress](https://wordpress.org/support/forum/your-wordpress/)
   
   In reply to: [bioneural.net](https://wordpress.org/support/topic/bioneuralnet/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/bioneuralnet/#post-380974)
 * warthog, the only help I can offer is in [this](http://www.bioneural.net/2006/05/29/step-by-step-iblog-to-wordpress/)
   post; I hope it’s useful.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [One RSS feed for multiple (but not all) categories?](https://wordpress.org/support/topic/one-rss-feed-for-multiple-but-not-all-categories/)
 *  [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/one-rss-feed-for-multiple-but-not-all-categories/#post-432525)
 * To build a custom feed for selected categories try something like:
 * your.site.com/index.php?feed=rss2&cat=3,8,14
 * where the numbers = each id of the category you want to include (or use negative
   numbers to exclude).
 * I don’t know what will happen if a post is in more than one category however.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415233)
 * Can you edit your .htaccess file? If so this might work:
 * # Re-direct default feed to exclude cats 8 and 14
    RewriteBase / RewriteRule 
   ^feed/?$ /index.php?&feed=rss2&cat=-8,-14 [R,L]
 * So anyone who clicks on your default feed link ([http://your.site.com/feed/](http://your.site.com/feed/))
   should get re-directed to:
 * [http://your.site.com/index.php?feed=rss2&cat=-8,-14](http://your.site.com/index.php?feed=rss2&cat=-8,-14)
 * Please let me know if this does work. If so, then the reason it does NOT work
   for me must be to do with my FeedBurner re-direction.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415231)
 * your.site.com/index.php?feed=rss2&cat=-8,-14 as the URL might work. Maybe it 
   depends on which version of WordPress you use. Maybe on whether your redirect
   to FeedBurner. Maybe on the phase of the Moon?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415229)
 * Otto42 thanks, no, I already tried that URL and I get the same WP database error
   as above. You may be right about implicating the FeedBurner redirection (which
   I want to keep). In any case I have finally resolved this and now offer a excerpt-
   only feed for all categories, and a full-text feed excluding category 16 (bookmarks).
 * Details [here](http://www.bioneural.net/2006/07/20/customizing-feeds-in-wordpress-2x/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415227)
 * OK, so I’m told this rewrite hack worked in WP 1.x but broke in WP 2.x
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415226)
 * I’ve given up on changing index.php. I’ve reverted to the default. Here’s the
   current situation:
 * [http://www.bioneural.net/feed/](http://www.bioneural.net/feed/) will redirect
   correctly to FeedBurner ([http://feeds.feedburner.com/Bioneuralnet](http://feeds.feedburner.com/Bioneuralnet)).
 * I want [http://www.bioneural.net/9rules/feed/](http://www.bioneural.net/9rules/feed/)
   to re-direct to a custom feed that excludes posts in category 16.
 * I added the following to my .htaccess file:
 * # Test to show bookmarks only
    RewriteBase / RewriteRule ^9rules/feed/?$ /index.
   php?&feed=rss2&cat=16 [R,L]
 * This will correctly show cat 16 (bookmarks) only for [http://www.bioneural.net/9rules/feed/](http://www.bioneural.net/9rules/feed/)
 * # Create a feed for 9rules.com excluding bookmarks
    RewriteBase / RewriteRule
   ^9rules/feed/?$ /index.php?&feed=rss2&cat=-16 [R,L]
 * This should show posts in all categories *except* in cat 16.
 * However, it results in this:
 * WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
    SELECT DISTINCT*
   FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT
   JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id!
   = 16) AND post_date_gmt <= ‘2006-07-20 10:10:59’ AND (post_status = “publish”
   OR post_author = 1 AND post_status != ‘draft’ AND post_status != ‘static’) AND
   post_status != “attachment” GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT
   0, 10
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/.ashea/bioneural/bioneural.net/wp-includes/wp-db.php:102) in /home/.
   ashea/bioneural/bioneural.net/wp-rss2.php on line 8
    [http://www.bioneural.net](http://www.bioneural.net)
   stuff worth sharing Tue, 18 Jul 2006 21:09:04 +0000 [http://wordpress.org/?v=2.0.3](http://wordpress.org/?v=2.0.3)
   en
 * Anyone?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415224)
 * Evidently extremely challenging. I’ll bet there isn’t a single WP user visiting
   these forums who is remotely capable of answering this one, with a simple “Yes”
   or “No, it isn’t possible”. Not the case? Prove me wrong!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Exclude category from feed plus force full content?](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/)
 *  Thread Starter [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/exclude-category-from-feed-plus-force-full-content/#post-415196)
 * Obviously a difficult question.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Comment count.](https://wordpress.org/support/topic/comment-count-2/)
 *  [bmck](https://wordpress.org/support/users/bmck/)
 * (@bmck)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/comment-count-2/page/2/#post-303193)
 * OK, it may be resolved. Apparently the DYPM plugin had an issue, now fixed:
 * “There was a bug with comment counting, rejected posts still incremented the 
   comment count (if you didn’t have moderation on)”
 * From: [http://www.herod.net/dypm/dypm.html#whats_new](http://www.herod.net/dypm/dypm.html#whats_new)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/bmck/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bmck/replies/page/2/?output_format=md)