wordpress

How does wordpress know about its functions?

Specifically in theme php files, such as say index.php. The very first thing in most theme's index.php file is a call to get_header() which is most certainly not not defined in index.php, so how does it know about that function? I'm not very familiar with php, but from what I've read just now there is an include and require keyword whi...

mix two files htaccess

I need the specialists' help. I am trying to mix two files htaccess The first: <IfModule mod_mime.c> <FilesMatch "\.html\.gz$"> ForceType text/html FileETag None </FilesMatch> AddEncoding gzip .gz AddType text/html .gz </IfModule> <IfModule mod_deflate.c> SetEnvIfNoCase Request_URI \.gz$ no-gzip </IfModule> <IfModule mod_headers.c...

how to change WP theme to take whole browser page

I am trying to change thematic default theme to take the whole browser page ... for example: http://themeshaper.com/demo/thematic/ Is there a simple fix that can be done? I tried few things on that page with firebug but none seemed to have worked.. ...

How do I place the blog portion of wordpress in a subdirectory, while keeping Pages at the root?

I'm new to Wordpress, and I'm using it as a general CMS for the first time. It's a simple site with a few pages, and also a blog. The blog has the same theme as the rest of the site. In any case, I'd like the blog home page to be at /blog, and the Pages at /{page-slug}, and a Page is assigned to the root of the site. What's the best way...

sidebar covers footer in internet explorer 6 and 7

i have designed a template for wordpress, the problem is that when sidebar gets longer some of it will cover the footer in internet explorer 6 and 7, the website address is : http://blog.baabak.ir (its in persian), but if you look at it in internet explorer 6,7 you will see the sidebar logo will cover the footer, for example in this page...

Wordpress MU: Newly uploaded theme is not showing in the theme page for actication.

I have uploaded a theme in the theme folder of my clients server. He has already provided me the admin access but when I go to the theme page I could not see my newly uploaded theme and for this reason I could not able to activate the theme. I'm waiting for your quickest help. I like to inform you have I have developed the theme on wordp...

Anyone using WP-CodeBox 1.4 with Wordpress 2.8.6

Over the last year or so I tried using WP-CodeBox for a syntax highlighting tool. I downloaded a couple of versions and tried them with a few versions of WordPress. I have never been able to get CodeBox to work. Anyone suggestions? Anyone using this combination or have a similiar story? What did you do? I like the features it offers li...

Display resulst from a query with PHP (Wordpress)

Trying to display results from an sql query in PHP: SELECT * FROM wp_celebcount ORDER BY count DESC I'm trying to display two columns: wp_celebcount.name & wp_celebcount.count Having trouble getting the result to show with PHP - I want to show this result on my index.php Wordpress theme file. Thanks for the help... ...

rewite rule for two folders

Hi, I'm migrating my web from Joomla to Wordpress, in order to do so I need to set up access to a new subfolder to install wp. I have a htaccess file redirecting actual Joomla app to subdirectory /joomla/ I need access to /wp/ to set up and test before deleting /joomla/ directory. actual htaccess: <Files php.ini> order allow,deny de...

MySQL syntax for Wordpress

Hi, I need to retrieve data from a Parent > Child > Child relationship category setup. And I have no CLUE as to the proper SQL query syntax for that. Help? Thanks, Tomer ...

wordpress custom admin page - checkbox

I'mt trying to create a plugin which adds a custom page in the admin panel. I have a checkbox with name "deposit_sandbox" if check true it should update the option in the database to true, if not selected it should update the option in the database to false. how do I check if a checkbox was selected and then update the database with upd...

CSS Code styling - background color is missing on empty lines.

I'm hoping this is simple. I'm not a CSS guy. I'm trying to make some code look a little better on a blog and I have the following <code> CSS style. code { display: block; white-space:normal; background-color: #eeeeee; font: 1em, 'Courier New', Courier, Fixed; padding: 7px; margin: 7px...

Wordpress P2 and wp-facebookconnect

Hello I am running the wordpress p2 theme with the wp-facebook connect plugin http://wordpress.org/extend/plugins/wp-facebookconnect/ The plugin works fine except the avitars do not show for posts and status updates (works for replies though) Is any one familiar with this theme and problem? Thanks ...

PHP regex expression for the following...

<p>This will serve as a debug page.</p> <p><img src="http://mattmueller.me/blog/wp-content/uploads/2009/12/threadless.png" alt="Threadless" title="Threadless" width="650" height="150" class="alignnone size-full wp-image-73" /></p> <p>This will serve as a debug page.</p> <img src="http://mattmueller.me/blog/wp-content/uploads/2009/12/thr...

Multiple Select with Explode: only returns the word "Array"

Using Wordpress I have created a multiple select box so that users can select categories to exclude. When the page initially loads I see my default values pre-selected. However when I select new values and save... I only see the word "Array" echoed and nothing selected? <select class="amultiple" id="<?php echo $value['id']; ?>" name="<...

formatting help with wp_list_pages()

I posted this question on the wordpress forum but got no hits. Perhaps one of you might be able to point me in the right direction. I am putting together a wp theme for a site I am working on. I want to get the layout to match the rest of the site as closely as possible and am running into trouble using the wp_list_pages/categories/boo...

What to keep in mind when making Wordpress themes

I have been making Wordpress themes for a year or two and keep running into things I need to keep in mind when trying to make my themes as compatible and flexible as possible with their settings, plugins, etc. Is there a resource that keeps a checklist of all the "don't forgets" of Wordpress theming? What things do you try to keep in m...

htaccess html > php redirect + Wordpress rewrite permalinks structure

Hello All I have started a site up using html only, switched it over to php to make my life easier and have used the following code in the .htaccess to ensure all users (who may have bookmarked) are still seeing the right pages: Options +FollowSymlinks RewriteEngine on RewriteRule ^(.+)\.html$ http://domain.com/$1.php [R,NC] Now I am...

Creating a Archive in Wordpress Datewise for a Particular Category

Hello Guys In my site i would like to add a archive page or a custom page where i want to show posts from a particular category and that with a date wise format like for example: i am in category : Technology All post of a day will be shown at this page like i have written 3 posts only on that day. The next page from navigation wou...

301 redirection help on wordpress

Hello all friends, I'm searching for a 301 redirect rules in .htaccess for the last one week. I have visited many similar pages here too. But all are not working for me. So I'm asking help from masters like you. I'm using wordpress blogging platform. Before I was using Joomla and that time so many 404 errors was there on my website. T...