Title: Philip's Replies | WordPress.org

---

# Philip

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [upload and the_post_thumbnail( ‘medium’ )](https://wordpress.org/support/topic/upload-and-the_post_thumbnail-medium/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/upload-and-the_post_thumbnail-medium/#post-1555644)
 * thanks for this [@goldenapples](https://wordpress.org/support/users/goldenapples/),
 * i came here after finding your post in your blog.
    i have a question about this,
   how you insert the image uploaded in the content of the post as a file?
 * is it possible to return the post id and then update to attach the image(s)?
 * i will really appreciate any help,
    thanks a lot, Philip
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [IF IS post author/editor show content – ELSE hide](https://wordpress.org/support/topic/if-is-post-authoreditor-show-content-else-hide/)
 *  Thread Starter [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/if-is-post-authoreditor-show-content-else-hide/#post-1820865)
 * ok, i found what i need/you need to do for this….
 * first step:
    need to get the ID of the user viewing the page
 * second step:
    need to check the ID against $post->post_author and echo some content
 * so how to compile this:
    1. before the loop get the ID of the user viewing the
   page
 *     ```
       <?php
       global $current_user;
       get_currentuserinfo();
       ?>
       ```
   
 * 2. inside your loop check the ID against $post->post_author
 *     ```
       <?php
       if ($post->post_author == $current_user->ID)
       echo 'AUTHOR CONTENT HERE';
       ?>
       ```
   
 * i know a lot of people searching a solution for this, hope you enjoy it…:)
 * love you WordPress,
    all the best!!!
 * Philip
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional Tags for Custom Post Types](https://wordpress.org/support/topic/conditional-tags-for-custom-post-types/)
 *  Thread Starter [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/conditional-tags-for-custom-post-types/#post-1790594)
 * i run this in my theme’s footer.php,
 * for example, i do this to get the form scripts:
 *     ```
       <?php if ( is_page('contact') ) { ?>
       <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/form.js"></script>
       <?php } ?>
       ```
   
 * …if is page “contact” load the /js/form.js script.
 * what i need is to do the same in a post type (if a user is in a page that belongs
   to a post type)
 * thanks a lot for your help [@alchymyth](https://wordpress.org/support/users/alchymyth/)!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Run a query in a custom widget?](https://wordpress.org/support/topic/run-a-query-in-a-custom-widget/)
 *  Thread Starter [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/run-a-query-in-a-custom-widget/#post-1740581)
 * thanks a lot MichaelH,
 * it was a problem with my taxonomies i fix it now.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [On theme activation check for content and if not available install in database](https://wordpress.org/support/topic/on-theme-activation-check-for-content-and-if-not-available-install-in-database/)
 *  Thread Starter [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/on-theme-activation-check-for-content-and-if-not-available-install-in-database/#post-1703873)
 * If anyone else want to do something like this,
    take a look at [wp_insert_category](http://codex.wordpress.org/Function_Reference/wp_insert_category).
 * thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: User photo] front end upload](https://wordpress.org/support/topic/plugin-user-photo-front-end-upload/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-user-photo-front-end-upload/#post-1607791)
 * ok, here is a working solution for the [Cimy User Extra Fields](http://wordpress.org/extend/plugins/cimy-user-extra-fields/)
   plugin,
 *     ```
       <tr>
       	<th><label for="photo">Photo</label></th>
       	<?php $value = get_cimyFieldValue($user_ID, 'PHOTO'); ?>
       	<td>
       	<img src="<?php echo cimy_uef_sanitize_content($value); ?>" alt="" width="100" /><br/>
       	<input name="cimy_uef_PHOTO_oldfile" value="<?php echo cimy_uef_sanitize_content($value); ?>" type="hidden"/>
       	Update the picture<br/>
       	<input id="photo" name="cimy_uef_PHOTO" value="" type="file"/>
       	<br/>Delete the picture
       	<input name="cimy_uef_PHOTO_del" value="1" type="checkbox"/>
       	</td>
       </tr>
       ```
   
 * you can simple included in your form after you have create a new image field 
   in the plugin options.
 * keep in mind that in the code i use an image field named ‘PHOTO’, but can be 
   used for all the fields/field types you create from the plugin.
 * hope you find it useful,
 * thanks to the community!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Vimeo embed in custom field not showing in feed](https://wordpress.org/support/topic/vimeo-embed-in-custom-field-not-showing-in-feed/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/vimeo-embed-in-custom-field-not-showing-in-feed/#post-1734237)
 * take a look at Justin’s plugin
 * [http://justintadlock.com/archives/2008/01/27/custom-fields-for-feeds-wordpress-plugin](http://justintadlock.com/archives/2008/01/27/custom-fields-for-feeds-wordpress-plugin)
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [How to get all my multisites to look the same?](https://wordpress.org/support/topic/how-to-get-all-my-multisites-to-look-the-same/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-get-all-my-multisites-to-look-the-same/#post-1757709)
 * [@brianhinkley](https://wordpress.org/support/users/brianhinkley/),
 * as Andrea said before, you can define your default theme sitewide,
    you can put`
   define(‘WP_DEFAULT_THEME’, ‘theme-folder-name’);` in your rootdir/wp-config.php
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Custom Fields for Address/Phone Number](https://wordpress.org/support/topic/custom-fields-for-addressphone-number/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/custom-fields-for-addressphone-number/#post-1759433)
 * you can try this,
    place this code in your functions.php
 *     ```
       function add_phone_contactmethod( $contactmethods ) {
         // Add Phone Number
         $contactmethods['phone'] = 'Phone';
         return $contactmethods;
       }
       add_filter('user_contactmethods','add_phone_contactmethod',10,1);
       ```
   
 * here is [the original article](http://yoast.com/user-contact-fields-wp29/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [A PLUGIN? Author select best comment so that comment be on top of list?](https://wordpress.org/support/topic/a-plugin-author-select-best-comment-so-that-comment-be-on-top-of-list/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/a-plugin-author-select-best-comment-so-that-comment-be-on-top-of-list/#post-1376799)
 * yes it would be nice, a plugin with that functionality,
    i hope someone with 
   more skills can help here,
 * thanks a lot!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: User photo] front end upload](https://wordpress.org/support/topic/plugin-user-photo-front-end-upload/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-user-photo-front-end-upload/#post-1607783)
 * i found this article and i have to say that is very useful,
    i try to make it
   work but with no luck till now,
 * can anyone help here on how to, cause the topic [here](http://wordpress.org/support/topic/custom-edit-profile-page?replies=19)
   is closed.
 * thanks a lot
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [how to remove category from the posts](https://wordpress.org/support/topic/how-to-remove-category-from-the-posts/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/how-to-remove-category-from-the-posts/#post-1735877)
 * the “wp12” is a category?
    if so you can check your permalinks structure or your.
   htaccess file. also if you want you can check the WP No Category Base plugin 
   [here](http://wordpress.org/extend/plugins/wp-no-category-base/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPMU Default User Role] [Plugin: WPMU Default User Role] WordPress MU 3](https://wordpress.org/support/topic/plugin-wpmu-default-user-role-wordpress-mu-3/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpmu-default-user-role-wordpress-mu-3/#post-1557030)
 * sorry for this,
 * i forgot the ‘backtick’
    ‘[‘](http://www.radiolivetransmission.com/2010/03/wordpress-plugin-new-blog-default-user-role/)
 * thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPMU Default User Role] [Plugin: WPMU Default User Role] WordPress MU 3](https://wordpress.org/support/topic/plugin-wpmu-default-user-role-wordpress-mu-3/)
 *  [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-wpmu-default-user-role-wordpress-mu-3/#post-1557029)
 * ok,
    i found a plugin here that does exactly the same thing and it’s working 
   fine,
 * i install it at the mu-plugins directory using the WP v3.0.1
 * thanks
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [On theme activation check for content and if not available install in database](https://wordpress.org/support/topic/on-theme-activation-check-for-content-and-if-not-available-install-in-database/)
 *  Thread Starter [Philip](https://wordpress.org/support/users/artdev/)
 * (@artdev)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/on-theme-activation-check-for-content-and-if-not-available-install-in-database/#post-1703788)
 * thanks for the reply Rich,
 * i’ll take a deep look into your solution, to see what i can do,
 * thanks

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

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