wordpress

Advice on using Wordpress or a PHP Framework?

I am currently building a blog type website for myself. I have used wordpress in the past and really enjoy it, but when it comes to building more than just a blog I usually get bogged down in writing hacks for it. The site I'm building is going to pretty much be a blog, but with a 'question and answer' side to it (NOT A FORUM - purely Q...

Wordpress 2.9 theme options admin page with image upload

I am creating a theme options page for my wordpress 2.9 theme and I wanted to include a field where I can upload a different logo. So far I've added textareas, inputs and checkboxes, but I'm not sure how to upload an image. Does anyone Know of a tutorial that explains how to do this or can anyone offer some insight? Thanks for the help...

htaccess and no www

I am trying to redirect my whole site to non-www here is the htaccess code I am using # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # no www RewriteEngine On RewriteCond %{HTTP_HO...

Wordpress: wpdb->insert VERSUS wpdb->prepare(wpdb->query("INSERT...

Hello, I am wondering if wordpress' insert function also adds slashes to data. If it doesn't it would seem that the prepare query method would be better to prevent against SQL injection. I tried looking the issue up in there codex/api; however, it seems undocumented. Thanks! ...

How can I redirect one wordpress install to another (both in subdirectories on the same domain)?

Pulling my hair out over this one. I have one wordpress install at /2009 and one at /2010. I am trying to redirect all requests to the 2009 site to the 2010 site. I have tried both of these in the root .htaccess and in the /2009 .htaccess: RewriteRule ^2009.*$ 2010 [R=301,L] RewriteCond %{REQUEST_URI} ^2009.*$ RewriteRule . 2010 [R=3...

Best Practice creating Forms in Wordpress

I was wondering what is the best practice for creating forms in Wordpress? As a developer I hesitate to use a plugin like CForms, but I can understand why someone would like to use it. In the end I want to know the following: What is the best practice for creating forms in Wordpress? (Custom HTML/CSS with Javascript and PHP validation ...

Integrating MailChimp into E-Commerce Shopping Cart

Hi Everyone! I'm about to ask a tough question, and I apologize in advance for the fact that I'm a n00b at javascript! Basically I am looking to integrate MailChimp list signup into the WP E-Commerce plugin. If I understand correctly, this could be accomplished with Javascript where I send the data to two separate locations. I fo...

Using wp_query to pull content from a specific post using either title or id

I am trying to pull excerpts and custom fields from specific posts, I have tried using post titles and post id but I am only succeeding in pulling every single post using this query. For example I have this code trying to pull just the title for the post with id 182 <?php $map = new WP_Query(); $map->query('post_id=182'); ?> <?php while...

Ajax response call, 404 Not Found

Hi, i tried to use wordpress and codeigniter for a intelligent join between the best CMS and the best PHP Framework. Actually i intended to use codeigniter for database managemnent and wordpress for display. But i wanted to use codeigniter inside wordpress. So, i have a file tree like that: www - codigniter-core folder - .htaccess - ...

wordpress, category redirect using cookies.

What I want to achieve: When a person comes to the site and selects a particular category, the next time they come to the site (returning user) - the page will open up on that category section. I would think this would be fairly easy to do via setting a cookie when the visitor clicks on the category link (or when the category page loads...

Echo styles into the mashup of a google map and wordpress custom fields

Using wordpress, I am pulling in a custom fields from specific posts to fill in the content for a google generated map. I am using this code var point = new GLatLng(48.5139,-123.150531); var marker = createMarker(point,"Lime Kiln State Park", '<?php $post_id = 182; $my_post = get_post($post_id); $title = $my_post->post_title; ...

Log out of BOTH Wordpress & Facebook

Hi All, So I've successfully integrated Facebook into my Wordpress site. I've also linked together the accounts. However, the way the site works is that you're either logged into the site via the Wordpress Account Facebook Account or Wordpress & Facebook I know how to log out of Facebook and I know how to log out of Wordpress, but ...

LAMP tutorial. Request->response loop from the ground up.

I just installed wordpress on my local machine because I want to learn some basic web development tools and wordpress has all the components I want to play with. There is a lot going on when wordpress presents a page inside the browser and I would like to get a handle on all of it if possible. So do you have any suggestions on where I sh...

Local host WAMP server is not working?

HEllo, I have download the wordpress at my local machine. and designing my website using wordpress. i have download the wanp server and it working fine at loca server last 2 months. 2 days back i run the registry cleaner software for maintenance purpose. but after that when i tries to open wordpress logine details at local server (my ...

Is good knowledge of PHP needed to make an installable template for CMS's like Wordpress, Joomla, or Drupal?

Is good knowledge of PHP needed to make an installable template for CMS like Wordpress, Joomla, Drupal? Or is good knowledge of XHTML and CSS enough? ...

Wordpress - how to show just posts on main index

Hi, I have a Wordpress theme that I've been making 'my own' visually and can't seem to get the main content section to display regular posts only - instead of the boxes. Does anyone know how I can change this without messing it up completely? I've tried stripping everything away and replacing with the 'display all posts loop' thing, bu...

Why won't my global variables properly resolve?

here is my plugin activation code $classified_category_name = 'classified'; $credit_table_name = 'credits'; $credit_table_version = 0.1; register_activation_hook(__FILE__, 'LBH_Classifieds_Activate'); function LBH_Classifieds_Activate() { global $wpdb; global $classified_category_name; global $credit_table_name; global...

Wordpress: Insert shortcodes inside attributes of other shortcodes

Is there any way to be able to insert shortcodes (and other similar markup) inside the attributes of another (custom made) shortcode? I've tried using do_shortcode() but seems that don't work with attributes. ...

Wordpress FORCE UPDATE of permalink settings

I've been having issues on creating new wordpress blogs where I'm setting permalinks via script on theme activation. However, even though they appear to be correct when I check the permalink settings in WP, my new pages are throwing 404 errors. The only fix I've found is that I have to go back to permalink options and click "Save Change...

Problem in integrating Wordpress blog's in Cakephp Website

Hello Everyone, I was working on a site of Cakephp which was successfully delivered.But recently Client again appered and asked me to put the Wordpress blog in it,to cover up the Blogging thing in his site.He wants to share the authentication between the Cakephp and WP.Whoever registers in his site,then Logins in it and if he clicks on t...