|
Kitsch Ersatz posted:Why didn't you save the database?
|
# ¿ Jul 6, 2009 15:07 |
|
|
# ¿ Apr 26, 2024 05:16 |
|
I'm on Wordpress 2.8.6 and I'm playing around with modifying a WP theme. I'm having some trouble with wp_list_pages in header.php to create a navigation menu listing only pages with a certain custom value, so:code:
|
# ¿ Feb 26, 2010 03:25 |
|
I'm working on a WP site which uses page templates to replace all of the simple user account registration and post administration. When the site goes live, I won't want any users who don't have the Administrator role to be able to log in at the /wp-admin/ area...but I'm not wild on the idea of changing the core files in order to suit the purpose. Is there a way to write a plugin that can hook the admin login functions to filter out non-admins? Any resources on the subject would be much appreciated.
|
# ¿ Apr 3, 2010 18:02 |
|
I followed the directions to Give Wordpress its own directory but now the site_url() function is returning paths relative to the subdirectory in which I installed WP instead of the root of my site. As an example, let's say WP is installed in http://myblog.com/blog/ and I have the site configured so that WP displays at http://myblog.com. When I call site_url('/blah.php'), it gives me http://myblog.com/blog/blah.php instead of http://myblog.com/blah.php What do I need to call instead of site_url to get the correct URL?
|
# ¿ May 14, 2010 02:15 |
|
Ned posted:Also check your general settings. You usually define the blog path there. True...the blog path is defined correctly according to the directions I linked above. site_url still returns the Wordpress path, not the blog path. Twiin, I'll try your suggestion this weekend. Thanks!
|
# ¿ May 14, 2010 19:12 |
|
|
# ¿ Apr 26, 2024 05:16 |
|
Twiin posted:Try get_bloginfo('siteurl') instead of siteurl(). This worked, thanks
|
# ¿ May 16, 2010 19:24 |