wordpress

Nav bar not showing pages in my wordpress theme

Hi I have a problem with my WordPress theme (html5) nav bar not showing site pages properly. See this at ChessatmyboarD chess blog at ChessatmyboarD I have tried to fix this over the last few days but so far with no luck. I looked at the TwentyTen default WordPress3 theme but I cannot adapt the code to my theme. Another small issue is ...

Wordpress MultiSite : CONSTANT or variable that focuses on Site.

Hey Guys, This is a tough one, and will require some up to date expertise on Wordpress to figure this one out. I have an external script that hooks into the database backend and I can work with everything pretty successfully, but one thing I cannot do is get permalinks using get_permalink($post_id) for any blog other than the main blog...

Wordpress function returns white screen in plugin

I am brand new at writing Wordpress plugins, so to start I am trying to create a simple one that just modifies a string. I wrote the script a while ago, and know that it functions. But to use it for Wordpress I want to apply it to the post titles. When I replaced the string with the function "get_the_title()" it returns a white screen. I...

How do I install WordPress in a Django subdirectory?

I have Django set up on my server at http://stevencampbell.org/ I want to be able to run WordPress at stevencampbell.org/blog/ I'm running all my Python and Django files through Fast_CGI (only Django option on my server). My .htaccess file looks like this: AddHandler fastcgi-script .fcgi RewriteEngine On RewriteRule ^(/media.*)$ /$1 [...

Wordpress not printing title if there is no loop

Im using wordpress 3.0 here: http://www.adventure-service.com On homepage i am using template that creates that content without wordpress loop. But on contact page i am using the loop: <?php get_header(); ?> <div id='content'> <?php get_template_part('loop'); ?> </div> <?php get_footer(); ?> ...

Remove ".html" from URL via .htaccess for a WordPress website

Background information: I've searched stackoverflow for a specific solution and couldn't find one that fixed my situation. Thanks in advance for any help you can offer. Your knowledge is appreciated. I've decided to accept a contract to "convert" (in the client's words) a Joomla site into a WordPress site. Everything is going along smo...

How to get the current plugin directory in Wordpress?

I need to get the current plugin directory like [wordpress_install_dir]/wp-content/plugins/plugin_name (if getcwd() called from the plugin, it returns [wordpress_install_dir], the root of installation) thanks for help ...

wordpress search function

Say I have a wordpress search box that searches the site for whatever is typed into the text field. Like so: <form action="<?php bloginfo('siteurl'); ?>" method="get"> <input name="s" type="text" value="Search here..." /> <input id="sermon_search_submit" type="submit" value="GO!" /> </form> This searches the entire site fine, bu...

How do I take an RSS feed from wordpress.com and add the newest post of the feed to another website?

I am building a static site using php files. On the index.php file, I need to dynamically pull the RSS feed of a certain wordpress.com blog. The only information I need to pull is the excerpt content of the newest post (1 post total). When the wordpress.com blog is updated, the content on the index.php file should update to an excerpt of...

Custom Taxonomy + Custom Post Type in Wordpress Permalinks ?

Is it possible to get a Wordpress URL to look like this: /%post-type%/%custom-taxonomy%/%postname%/ I can get everything but the middle. Any ideas? ...

Import wordpress theme

Hello, I want to import wordpress theme,without getting into the admin. Funny though, I did it once, but I got no idea how. Thanks Jean ...

Wordpress and the_content()

Anyone knows why the_content() doesn't show on my single.php page, while it shows up on index.php? Thanks. <div class="block"> <h1><?php the_title(); ?></h1> <p class="date"> <?php the_date('d ...

remove /blog sub from wordpress permalinks

Any idea? Im using wordpress as a CMS (not a blog) and I would like to change the default "blog" subdirectory in something like "news". Thanks WP Version 3 ...

Good wordpress sitewide message system plugin

I need a plugin for wordpress that will allow people to put a message at the top of the site that may state things like upcomming events or notifications of outages of our server..etc...etc.. Anyone know of a plugin that can do this? All the one's I've found like WP Announcement and Announcer don't seem to handle this very well. I canno...

Warning: Cannot modify header information

Warning: Cannot modify header information - headers already sent by (output started at /home/content/51/5126851/html/wp-includes/post-template.php:54) in /home/content/51/5126851/html/wp-includes/pluggable.php on line 890 I know I need to do something to my post-template.php file, but I'm not sure what. I looked at the other answers...

Using Dates in Custom post_type Permalinks in Wordpress 3.0

I'm adding a custom post_type to Wordpress, and would like the permalink structure to look like this: /%post_type%/%year%/%monthnum%/%postname%/ I can't figure out how to add the date tags. Using this code, gives me /my_type/example-post-slug/: register_post_type( 'customtype', array( ...other options... 'rewrite' => array('...

Facebook - hide content on website till "Like" button clicked...

I'm using the wordpress plugin from http://www.sociable.es/facebook-wordpress-plugin-3-0/ on my blog, and I try to figure out, how they hide their download till I click the "Like" button on the post. I tried: <fb:fbml version="1.1"> <fb:visible-to-connection>HIDDEN CONTENT</fb:visible-to-connection> </fb:fbml> But it didn't work. Is...

Matching duplicate whitespace with preg_replace

I'm writing a WordPress plugin, and one of the features is removing duplicate whitespace. My code looks like this: return preg_replace('/\s\s+/u', ' ', $text, -1, $count); I don't understand why I need the u modifier. I've seen other plugins that use preg_replace and don't need to modify it for Unicode. I believe I have a default in...

Date-based archives for custom post_types (wordpress 3.0)

If I have a custom post type named 'my_type', how can I get Wordpress to make date-based archives, for example: mysite.com/my_type/2010/ mysite.com/my_type/2010/07/ mysite.com/my_type/2010/07/28/ I'm looking for tips both on creating the rewrite rules and on linking the urls to templates. Thanks! Update: I've tried the following i...

Buddypress sticky topic not working

Does anybody have any idea why sticky topics in Buddypress wouldn't be working? I click the link to make a topic sticky, and I just get returned to the Forums homepage; The 'topic_sticky' value in the database should change to a 1 or a 2, but it stays at 0. Any possible ideas? Thanks ...