wordpress

How to create pages in Wordpress that are not visible in menus

hello all I want to create some pages in wordpress, but I dont like these pages visible in menus. How can I create such pages ? thanks ...

How to add pagination in wordpress

How can I enable wordpress pagination in my home page? I have limited the no. of posts shown in the page. Do I need to put any code to show the pagination? regards - dj ...

Importing into Wordpress Via RSS feed

I am creating a wordpress blog for a magazine. They have a legacy blog engine with years of archives, and I am trying to migrate all of the content into wordpress posts. My method is to import all of the content via the RSS feed. I am using a plugin called Feed Wordpress which imports RSS feeds into posts. The only problem is that is on...

WordPress and ReWriteRule

I have a product-details template in my theme that handles display for different products based on the URL. By default, WordPress will allow a number to be passed to the template page by appending to the URL: product-details/3/ However, I want to make this to be more SEO Friendly using a slug: product/sandals. Yet, when I do so, WordPr...

htaccess a dynamic URL

I'm using Wordpress with a plugin and it's currently making urls like this: http://www.example.com/?name=the-office I would like to redirect all similar urls to http://www.example.com/name/the-office Current htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCo...

Wordpress: custom post types: using custom fields or taxonomies?

I'm thinking about using WP custom post types to create a basic real estate website. The post type will be for property listings. I've decided to have one post type for For Sale and one for Rentals, simple because they have somewhat different property information. A typical listing will need to specify some information, ie, is it a hou...

wordpress theme

I am creating the wordpress theme and facing a little issue. In my theme, there are pages, I want to show the title of the page like 'About', 'Blog' how I can do this. 2nd I want to show the all the post just under the blog page. Even I created a template for blog, but unfortunelty, its not happening. appreciate for ur help. ...

How to show RSS feeds from my Wordpress blog in my CakePHP website?

Hello, How i can show the RSS Feed from my WordPress blog into my CakePHP website? I need the result to be a list where i can use the html code: <ul> <li>feed item 1</li> <li>feed item 2</li> ... <li>feed item n</li> </ul> ...

Wordpress: update all field values?

I want to update all field values (of a custom field) to a specific value. Would like to make it like a function and run it on a specific page or when button is clicked. Possible? ...

sIFR 3 showing on my Home Pge but not on any other pages

I have integrated sIFR3 and it shows perfectly in my home page but not on any other pages. I never changed anything only the name of the font. Here is my sifr-config.js: sIFR.replace(helvetica, { selector: 'h3', wmode:"transparent", css: '.sIFR-root { color: #ffffff; font-size:18px; margin:0; padding:0;}' }); sIFR.replace(helvetic...

Is It Possible to Comment Out HTML Code in a Wordpress Post?

Sometimes I need to inject some raw HTML code into a Wordpress post, and sometimes I need to comment out a chunk of that code.! With a plain text editor, I can just use <!-- Comment --> around the chunk I want to hide. But when I try this in a WP post, it does hide the code but I still see the "closing comment tag" -->. What's the r...

Wordpress: Sort Order by Custom Field Numerically

How Can I sort the custom field data numerically which is stored as string. I can't change it into database. query_posts($query_string. '&orderby=meta_value&meta_key=price&order=DESC' ); This is what I am using but it is sorting it as string as this is stored as string as well. Can anyone tell me how can I convert it into numerically...

Any idea why Wordpress's inCategorgy tag is not working?

So I am trying to add a "-none" to a class for a post if it is in a specific category in Wordpress. So like lets say if I am viewing a post that has a category id of 7, i want a certain class titled "example" change to "example-none". Here's my code: <div class="example<?= is_category('events') ?'-none':'' ?><?= in_category('7') ?'...

Is 154 MySQL Queries in 0.543 seconds a horrible thing?

I'm writing a wordpress newspaper theme. Because the theme makes use of multiple loops, it generates a lot of queries. Plus, I have to make many options dynamic because the theme will be released to the public (so I can't hardcode a lot of stuff). On the front page, with a typical setup (a top story area, five newsboxes [that's five wo...

Wordpress Htaccess eliminate _GET parameter

How to add a new rule on Wordpress default .htaccess to eliminate all the _GET parameter? <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> The example is like if I have URL of http://w...

Localization of a wordpress theme without a textdomain

Hi, I have a wordpress theme without textdomain (i.e. e(x) and not e(x,domain)). I also have the .po and .mo files in a folder under /themes/My Theme/localization (Notice the space name in the my theme). I would like to activate fr_FR. I created fr_FR.po and .mo and changed the wp-config to add the locale for fr_FR. However, I am still ...

Custom Wordpress index.php which circumvents The Loop isn't working correctly.

I'm building a Wordpress theme for a client and it's unlike any other theme I've built before in that the homepage is a collection of posts spread across multiple different containers and styles. It's supposed to look and feel like a magazine in that, at the beginning of each month, 9 different posts are published simultaneously that eac...

Wordpress tags - select from pre-determined list?

I have a WordPress install in which registered users are allowed to post articles. The problem lies in the Tags section. I like the idea of letting them add tags, but it's getting crazy. Often there are 3 or 4 of the same tag just spelled differently, sometimes people put weird stuff for tags, etc. I'd like to be able to allow "adding...

Adding email sucbscription to Wordpress theme

Hi All, I've developed my own Wordpress theme and I wanted to give users the ability to subscribe to my blog. I have the typical Post RSS and Comment RSS options that come with Wordpress under the META section of the sidebar, but I also wanted to give my readers an option to just input their email address and press a button to "subscr...

php and non existing files

on my site i call non existing files and it show index page not error 'not found page'. but i need to get this error, any ideas? update here my htaccess file # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* Rewrite...