simplistik
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Modal Menu ItemsYea, if you’re using wp_nav_menu() you should be able to control the nav output by going to Appearance > Menus in the admin. When you get to the Menus page in the upper right corner click “Screen Options” then check the “CSS Classes” checkbox, which will allow you to assign classes to your menu items. Do something like give all the ones you want to pop up in a modal a similar class, e.g. modal.
Get your favorite javascript library, I prefer jQuery and then snag some simple lightbox/modal plugin, Colorbox is a super solid one, then target the modal objects with your JS, sorta like this:
$(".modal a").colorbox({iframe:true, innerWidth:425, innerHeight:344});Forum: Fixing WordPress
In reply to: How do I sort posts by page ID in this function?try removing
caller_get_posts=1&cause that forces stickies to appear before everything no matter what, and they’re always posted by dateForum: Fixing WordPress
In reply to: get_header includeadd
<?php global $abcd; ?>before you define $abcdForum: Fixing WordPress
In reply to: How do I sort posts by page ID in this function?lol oops, should be
&orderby=IDtypo :), my bad
Forum: Fixing WordPress
In reply to: Setting up mutiple username accessThis is completely untested, but I just looked at the codex:
http://codex.wordpress.org/Plugin_API/Action_Reference
and I see that there’s a hook there called user_register:
http://codex.wordpress.org/Plugin_API/Action_Reference/user_register
… so … if I had to guess if you try putting this in your functions:
add_action('user_register', 'change_display_name'); function change_display_name($user_id) { $args = array(); $args['ID'] = $user_id; $args['display_name'] = 'Standard Name'; wp_update_user($args); }It will give everyone registers the same display name automatically. I assume. However, if you have open registration then every single person who registers will get the same display name.
LoL, edited the code to use the variable $user_id and not $post_id, I’m programmed to use $post_id 😛
Forum: Fixing WordPress
In reply to: How do I sort posts by page ID in this function?$orderby=IDnote the capital ‘ID‘ not lowercase
Forum: Fixing WordPress
In reply to: Setting up mutiple username accessWell, really it shouldn’t be an issue. The client should appreciate that there is a higher level of accountability and security built into their system. If everyone had the same username it’s much easier to brute hack the site when you already know a username, chances are that one of the 10 users will have a stupid weak password, and then it’s all down hill from there.
Forum: Fixing WordPress
In reply to: Setting up mutiple username accessNo … they don’t register with the same username, that’s a terrible practice. They register with their own unique username and password as it should be.
Then in their profile they change their nickname to be the same as everyone else’s. Anyone reading the site would see that the posts came from the same “Nickname” (which is what the “Display Name” defaults to).
Forum: Fixing WordPress
In reply to: Your Backup Folder Might be visible to the publicShould be in your plug-ins list in the admin. If you can’t see your plug-ins list then you don’t have enough permissions.
In the admin you should see something “Database” in the menu close to the last item expand that and click on “Uninstall WP-DBManager” allow it to uninstall. Then go to your plug-ins and deactivate it. Reactivate it, allow it to recreate the proper pathing on your new server, and you should be good. Since using “Uninstall WP-DBManager” won’t remove any of the physical files, everything that was good before should be good again.
Forum: Fixing WordPress
In reply to: All Navigation Buttons Lead to Home Pageadd it 🙂
it’s not in there by default, you can just add it directly below
define('WP_DEBUG', false);just above
/* That's all, stop editing! Happy blogging. */Forum: Fixing WordPress
In reply to: PHP THE METANo, your exact code would look like what I posted. Because you only want to obtain one value ‘producer’ you only need to call that specific post_meta value so you literally only need
$producer = get_post_meta($post->ID, 'producer', true);so where you have
<?php the_meta(); ?>replace it with:
<?php $producer = get_post_meta($post->ID, 'producer', true); _e($producer); ?>Forum: Fixing WordPress
In reply to: File / Folder Ownership That ISNT ApacheAfter you hand the site off to the client change the ownership of all the files in their path. To do this ssh into your server as root and change directory to the root install path for your client’s site e.g.
cd /var/www/vhosts/site.com/httpdocs/<– Media Temple’s setup. Then runchown -Rf username:group *If you happen to be using a Media Temple VPS it would look something like this:
chown -Rf username:psacln *If you don’t know the root path of your server a quick an easy way to find it is to open up any one of your php files in your WP install, like the header.php and use
echo $_SERVER['DOCUMENT_ROOT'];Note that most of the time this won’t hurt anything, but since you are logging in as the root user, just like any other command use with caution.
Forum: Fixing WordPress
In reply to: All Navigation Buttons Lead to Home PageTry upping your memory limit in your wp-config:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Just create a page and don’t link it anywhere. Additionally you should create it using a page template:
http://codex.wordpress.org/Pages#Page_Templates
with a custom header that includes noindex,nofollow in your meta.
Forum: Fixing WordPress
In reply to: PHP THE METAThat’s because you are telling it to call all the meta associated w/ the post. You need to use
get_post_meta()http://codex.wordpress.org/Function_Reference/get_post_meta
Then you would do:
$producer = get_post_meta($post->ID, 'producer', true);then replace the the_meta() with
_e($producer)