Title: Oz Ramos's Replies | WordPress.org

---

# Oz Ramos

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Graphic Buttons – old school](https://wordpress.org/support/topic/graphic-buttons-old-school/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/graphic-buttons-old-school/#post-5455607)
 * Can you give an example?
 * In the menu admin screen, if you click on the “Screen Options” tab on the upper
   right you can check off “CSS Classes” to target specific menu items.
 * From there you can change backgrounds, add icons, or even images separate from
   the menu item itself using the :before/:after psuedo-elements.
 * Here’s an indepth tutorial on using the psuedo-elements to add stuff to menu 
   items without actually adding stuff: [http://www.smashingmagazine.com/2011/07/13/learning-to-use-the-before-and-after-pseudo-elements-in-css/](http://www.smashingmagazine.com/2011/07/13/learning-to-use-the-before-and-after-pseudo-elements-in-css/)
 * Here’s a fairly advanced demo about buttons, but can easily be applied to WordPress
   menu items: [http://tympanus.net/codrops/2012/01/11/css-buttons-with-pseudo-elements/](http://tympanus.net/codrops/2012/01/11/css-buttons-with-pseudo-elements/)
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Should I and Can I?](https://wordpress.org/support/topic/should-i-and-can-i/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/should-i-and-can-i/#post-4630884)
 * I spent the last 38 minutes writing a long response, but then I realized that
   you’re goal here isn’t to master WordPress. By what you wrote, I’m assuming your
   work/company is looking to build out a member directory portal…which is is easily
   done in WordPress.
 * Before I go on, let me answer your questions:
 * **Can I use WP offline strictly in Localhost?** Absolutely, assuming you know
   how to setup the localhost. [http://www.wikihow.com/Install-Wordpress-on-XAMPP](http://www.wikihow.com/Install-Wordpress-on-XAMPP)
   **
   Should I use WP offline in Localhost?** Yes, it’s much faster to develop locally
   and then upload everything you have than doing it all online. **Can I integrate
   my pages of code into the WP setup?** Assuming you mean integrate your pages 
   of code with the WP setup hosted online, then yes. Probably easily. **Should 
   I code functionality separately and then integrate it into WP?** No, build it
   in WP. In fact, chances are the majority of what you think you’re going to need
   to build out is already built into WP.
 * —
 * My suggestion, instead of spending weeks trying learn HTML5/PHP/WordPress to 
   build out your App you should:
 * * Start here: [http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start](http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start)
 * * Install [Advanced Custom Fields (ACF)](http://www.advancedcustomfields.com/)(
   read [Managing Plugins](http://codex.wordpress.org/Managing_Plugins) if you don’t
   know how…it’s easy) and understand how it works
 * * Determine if the members listing will be actual members that can login (in 
   which case just let the sign-up/login using the built in WordPress authentication
   system) or build out what’s called a [Custom Post Type](http://wp.smashingmagazine.com/2012/11/08/complete-guide-custom-post-types/)
   called “Members” or similar with the relevant fields.
 * * If each member actually logs in, you’ll need to add fields to the user registration
   page, otherwise you’ll need to add the fields to your custom post type
 * * Learn about [WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query)
   to pull data from the database without having to learn MySQL, which may be prone
   to attacks if you’re not careful.
 * * Use a little PHP to manipulate the data if you need to, and HTML5 to display
   it.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined action (only for logged in admin)](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/#post-4630874)
 * Oh I almost forgot, at the bottom of that link, you’ll see a bold `Download Format`
   centered just above the footer. Click original format to download…or here:
 * [https://core.trac.wordpress.org/export/27200/tags/3.8.1/src/wp-includes/functions.php](https://core.trac.wordpress.org/export/27200/tags/3.8.1/src/wp-includes/functions.php)
 * Again, replace 3.8.1 with your version number if you’re using an older version.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined action (only for logged in admin)](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/#post-4630872)
 * Before you continue, definitely back up your site.
 * I’m not sure which version of WP you’re using, but if you’re using 3.8.1, replace/
   wp-includes/functions.php with this one: [https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-includes/functions.php](https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-includes/functions.php)
 * (If you’re using an older version, just replace 3.8.1 in the url with your version
   number.)
 * This should get rid of the error. Next, add that code you have to the bottom 
   of `/wp-content/themes/.../functions.php`. You should be ok after that.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Post Types with custom Rewrite Slug give 404](https://wordpress.org/support/topic/post-types-with-custom-rewrite-slug-give-404/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/post-types-with-custom-rewrite-slug-give-404/#post-4631290)
 * How about if you set `with_front` to false on line 24, and flush again?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Post Types with custom Rewrite Slug give 404](https://wordpress.org/support/topic/post-types-with-custom-rewrite-slug-give-404/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/post-types-with-custom-rewrite-slug-give-404/#post-4631284)
 * Whenever you programmatically change the rewrite rules, you’ll need to “flush”
   out the rules that were previously used.
 * To do this, visit the permalinks page and just click save. Ie) Settings > Permalinks
 * If that didn’t work at all, let me know, it might be something else.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Troubleshooting: Font Conversions](https://wordpress.org/support/topic/troubleshooting-font-conversions/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/troubleshooting-font-conversions/#post-4630865)
 * Hmm, which browsers are you comparing and which piece of text should I try and
   compare? I checked out the news section on Chrome, Safari and FireFox on Mac 
   and they look similar to me. The menus look similar as well.
 * Unfortunately, fonts aren’t rendered exactly the same across browsers 🙁
 * (or did you already fix it?)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal error: Call to undefined action (only for logged in admin)](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-action-only-for-logged-in-admin/#post-4630860)
 * Oops, you’re trying to add the line to the wrong functions.php. You shouldn’t
   ever touch anything located in “../wp-includes”
 * Instead, the functions.php file you’re looking for will be in: “../blog/wp-content/
   themes/%YOURTHEMENAME%/functions.php”
 * Just look for your theme name when you get into that themes folder. Add it to
   the end of the file like you tried originally, and it should work assuming the
   code your pasting in is good.
 * If not, just give a shout out
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Javascript Issue](https://wordpress.org/support/topic/javascript-issue-5/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/javascript-issue-5/#post-4630856)
 * WordPress strips out script tags (the <script></script>), so it won’t work if
   you simply drop it into a content editor (ie, page, widget, etc).
 * Because I don’t know which theme you are using, I can’t recommend adding code
   directly to your template files (otherwise they would get overwritten when you
   update). Instead, you could try this plugin: [http://wordpress.org/plugins/add-to-footer/](http://wordpress.org/plugins/add-to-footer/)
   and add the code they gave you into the “Any other HTML (no PHP) to add to wp_footer”
   field.
 * That plugin basically allows you to dump any scripts and html into the very end
   of each page load.
 * If that doesn’t work, could you send a link to your site?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [is_page theme options not working](https://wordpress.org/support/topic/is_page-theme-options-not-working/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/is_page-theme-options-not-working/#post-3922005)
 * Is $emr_options a global variable or defined somewhere else? If not then that’s
   the problem, at that point $emr_options doesn’t equal anything.
 * The first thing I do when testing variables is to check if it even has anything.
   You can do this by adding the following line just above the if statement:
    `echo'
   <pre>', print_r($emr_options), '</pre>';`
 * If you don’t see anything then the variable is not set. Otherwise you’ll see 
   a list of values contained in $emr_options, including ‘pagetitle_url’ if it’s
   there.
 * Can you try: `is_page(get_option('pagetitle_url'))` instead?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [How to change the password protect page feature to be a random number](https://wordpress.org/support/topic/how-to-change-the-password-protect-page-feature-to-be-a-random-number/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/how-to-change-the-password-protect-page-feature-to-be-a-random-number/#post-3918635)
 * I would create a custom metabox with a checkbox labeled “Password Protect”, and
   then in your page/single.php do something like:
 *     ```
       if(!get_post_meta($post->ID, '_protected', true) || isset($_GET['the-password'])) {
           the_content();
       }else{
           echo '<form method="GET">
               <input name="the-password">
               <input type="submit">
           </form>;
       }
       ```
   
 * Here, the content would only be shown if either the page does NOT have the metabox
   checkbox checked OR if it does and they entered a password…any password. Otherwise,
   they will only be shown the password textbox.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Renaming wp-admin to /](https://wordpress.org/support/topic/renaming-wp-admin-to/)
 *  Thread Starter [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/renaming-wp-admin-to/#post-3920266)
 * You’re probably right, I’m fighting an uphill battle here. I feel like there 
   is a way to do this through just .htaccess though 🙁
 * I’m building a web app and wanted the “frontend” to exist within the wp-admin
   dashboard. People who are logged out would only see login/register menu items
   on the left plus About content on the dashboard, and everyone else would see 
   the normal menu on the left plus metaboxes <i>and</i> content on the dashboard.
 * Although as I wrote this, I just realized I could fake this effect by simply 
   making a front-page.php that looks like a dashboard for those logged out…because
   my next question was going to be “How would I let anonymous see the dashboard”
   😛
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Theme Option fields not showing](https://wordpress.org/support/topic/theme-option-fields-not-showing/)
 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/theme-option-fields-not-showing/#post-3920774)
 * First, try setting [debug](http://codex.wordpress.org/Debugging_in_WordPress)
   on and checking out what error messages you’re getting.
 * Anyways, there are several things which strike out at me:
    1) “administrator”
   isn’t a capability, it’s a [role](http://codex.wordpress.org/Roles_and_Capabilities).
   Instead set $capability to “manage_options” (line 17), which only administrators
   can do anyways.
 * 2) $position should be an integer, yet you’re using a string. This may or may
   not be an issue, as I believe PHP auto-converts. Nevertheless, the [Codex](http://codex.wordpress.org/Function_Reference/add_menu_page)
   specifically says use an integer, so change line 25 to:
    `$position = 5;` Notice
   I removed the quotes around 5.
 * 3) Also, position 5 is used for Posts, so for now just try setting $position 
   to 30.123 (yes use a decimal). Rule of thumb is to always use a decimal for $
   position, because otherwise you’ll end up with collisions like this where one
   will hide the other.
 * **In response to future questions you’ll have for “Why is my theme options page
   blank”**
    Your **main_theme_menu_plugin** is all “wrong”. You defined socialSettings()
   inside of it, but you don’t actually call it. So you’ll just get a blank page
   when you go there. Also you have add_action(‘wp_ajax…’) inside this function,
   so you’re settings may or may not save. You’ll need to move the add_action outside
   of the function.
 * But first try getting the menu to display and then try getting the theme options
   page itself to display.

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