Title: madpress's Replies | WordPress.org

---

# madpress

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

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

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Hide Post] [Plugin: WP Hide Post] Add plugin metabox in Custom Post editor Page](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/#post-2006157)
 * Hey guys, sorry for that dead link. I dug through my archives and think I found
   the code I posted at the time. You can find it [here](http://pastebin.com/qqxBs7qK),
   let me know if it works. Don’t forget to replace every instance of YOUR-POST-
   TYPE with the name of your own custom post type.
 * By the way, you probably noticed that the plugin hasn’t received any updates 
   for a while now, so it might be wise to consider a different strategy to achieve
   what you want!
 * cheers
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/page/2/#post-1819353)
 * Alas! `get_the_date` produces the post date, not the current (today’s) date.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819351)
 * That’s right! One more question however: is it only possible then to return stuff
   which you can “get”? What if I would like to display today’s date for example?
 * `<?php echo date('l jS F Y'); ?>`
 * And on a general note: wouldn’t it be nice to have an action hook like loop_end
   for inserting stuff below the post content?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819349)
 * Excuse me, but I’m not seeing clear yet. Could you elaborate a little on what
   should be done to get the above working properly?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819347)
 * Whoops, still a bit in the dark here. Is there a way to echo php stuff below 
   the post content, along with the html? For example, the following displays the
   permalink above the post content, and the text “This is the” below the content.
 *     ```
       function madpress_permalink() {
       		echo the_permalink(); }
       add_filter('the_content', 'add_test');
       function add_test($content) {
       	if (is_single()) {
       		$content .= '<p>This is the ' . madpress_permalink() . '</p>';
       	}
       	return $content;
       }
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819344)
 * Another valuable lesson! Thanks 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819340)
 * Hey alchymyth, basically I wrote something like this:
 *     ```
       function madpress_test() {
       		echo "TEST"; }
       add_filter('the_content', 'add_test');
       function add_test($content) {
       	if (is_single()) {
       		$content .= madpress_test();
       	}
       	return $content;
       }
       ```
   
 * This inserts “TEST” between the title (and post metadata) and the post content.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [add content to bottom of single posts using functions.php](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/add-content-to-bottom-of-single-posts-using-functionsphp/#post-1819338)
 * > adding to ‘the_content’ puts this content above the post content, not at the
   > bottom where I want it to be.
 * I’m having the same issue, with Twenty Ten, but also with other themes. However,
   I see plugins using this action to add a ratings box or the like below the post
   content, so: any ideas what might be the problem here?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Hide Post] [Plugin: WP Hide Post] Add plugin metabox in Custom Post editor Page](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-hide-post-add-plugin-metabox-in-custom-post-editor-page/#post-2005971)
 * Hi Nico, I managed to get this plugin working with custom post types, you can
   find the adapted code [here](http://madpress.org/wp-hide-post-plugin-custom-post-types/470/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_nav_menu, conditional tags and fallback_cb](https://wordpress.org/support/topic/wp_nav_menu-conditional-tags-and-fallback_cb/)
 *  Thread Starter [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp_nav_menu-conditional-tags-and-fallback_cb/#post-1987693)
 * This specific problem was caused by a [pre_get_posts](http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts)
   filter in my functions.php. In fact, I had an issue with this filter [before](http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list#post-2007723),
   so I should’ve known 😉
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Impossible to edit taxonomy from a custom post type](https://wordpress.org/support/topic/impossible-to-edit-taxonomy-from-a-custom-post-type/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/impossible-to-edit-taxonomy-from-a-custom-post-type/#post-1974185)
 * Your problem is caused by a capital letter in your taxonomy name, you should 
   have ‘categories’ instead of ‘Categories’
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Cheatin’ uh? erro on taxonomy – custom post type](https://wordpress.org/support/topic/cheatin-uh-erro-on-taxonomy-custom-post-type/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/cheatin-uh-erro-on-taxonomy-custom-post-type/#post-1969609)
 * Make sure the registered taxonomy name does NOT start with a capital letter!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to associate a Custom Post Type to an existing category ?](https://wordpress.org/support/topic/how-to-associate-a-custom-post-type-to-an-existing-category/)
 *  [madpress](https://wordpress.org/support/users/madpress/)
 * (@madpress)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/how-to-associate-a-custom-post-type-to-an-existing-category/#post-1856425)
 * sure, just add this line:
 * `'taxonomies' => array( 'post_tag', 'category '),`

Viewing 13 replies - 1 through 13 (of 13 total)