Title: MWCreative's Replies | WordPress.org

---

# MWCreative

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Page scroll to id] Full page scrolling with mousewheel.](https://wordpress.org/support/topic/full-page-scrolling-with-mousewheel/)
 *  [MWCreative](https://wordpress.org/support/users/mwcreative/)
 * (@mwcreative)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/full-page-scrolling-with-mousewheel/#post-5199794)
 * Jaja,
 * you could also use a hook within your functions file (or wherever you pasted 
   the code in a php file) to restrict the output of your script. Say you have your
   script in your main theme folder – called ‘myscript.js’.
 * The proper way to include scripts within WordPress is with the ‘wp_enqueue_scripts’
   action hook. There are some examples in your functions.php file within your theme.
   Here’s a quick way to restrict output using the wp_enqueue_scripts and get_current_blog_id()
   functions.
 * `
    <?php function enqueue_my_custom_scripts() { wp_register_script('my-script','/
   wp-content/themes/mytheme/myscript.js'); $blog_id = get_current_blog_id(); if(
   $blog_id == '2') { wp_enqueue_script('my-script'); }
 * }
    add_action('wp_enqueue_scripts', 'enqueue_my_custom_scripts'); ?>
 * Adding this code, altered to fit your Javascript code file, you should be able
   to effectively load the scripts only on the blog specified by the get_current_blog_id()
   check.
 * There are also a ton of other conditionals available for WP_Query(), which will
   check where you are in the site and allow you to output specific code for each
   condition.
 * Plugins are great, but if you choose one that doesn’t get updated regularly enough,
   you could be in for some security issues – which is why I like coding things 
   out by hand. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Meta - User Profile Builder and User management plugin] How to get user details for other parts of websites?](https://wordpress.org/support/topic/how-to-get-user-details-for-other-parts-of-websites/)
 *  [MWCreative](https://wordpress.org/support/users/mwcreative/)
 * (@mwcreative)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/how-to-get-user-details-for-other-parts-of-websites/#post-5432601)
 * Hi Maja,
 * If you can already enter shortcodes into the email template then you could probably
   create your own shortcodes to display the user info and insert them into the 
   email template.
 * You’d have to create the shortcode functions in your functions.php file in your
   theme folder. Here’s some info about creating shortcodes: [WP Shortcode API on Tuts+](http://code.tutsplus.com/tutorials/wordpress-shortcodes-the-right-way--wp-17165)
 * You’ll want to pull the current user data in to your shortcode functions using
   get_currentuserinfo(). Here’s a post on how to bring the data values in: [WordPress get_currentuserinfo() – WordPress.org](http://codex.wordpress.org/Function_Reference/get_currentuserinfo)
 * As I don’t have specific information on what plugin you’re using for your rich
   text emails, I can’t say as it will process the shortcodes, but it’s a start!
 * Good luck
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display Posts - Easy lists, grids, navigation, and more] Custom Post Type Issue](https://wordpress.org/support/topic/custom-post-type-issue-4/)
 *  [MWCreative](https://wordpress.org/support/users/mwcreative/)
 * (@mwcreative)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/custom-post-type-issue-4/#post-5472396)
 * Hi ntarantino,
 * you could try giving a little separation between those ‘seasons’ categories by
   grouping the posts with a common tag, then outputting just posts with that tag.
 * [display-posts tag=”my_special_tag” posts_per_page=”20″]
 * Replace the “my_special_tag” with the tag of your choice. This way you can output
   the posts in tons of different combinations by adding a few standard tags.

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