wordpress

Wordpress Blog error

When we point the URL to http://iffort.com/blog/ we're getting the error below: Parse error: syntax error, unexpected T_STRING in /home/iffortc/public_html/blog/index.php on line 18 ...

Submenus in Wordpress

I know you can create pages under a parent eg: -a --c --d --e -b --f --g But all of the themes I've looked at will only display the top menus. -a -b How can I create a menu with drop downs for the sub menus I'll handle the drop down scripting, but how do I access the page names in order to create one? ...

How to get multiple items from <select> with PHP?

I'm building a theme options page for my WordPress theme and I would like to have a functionality to select multiple items from a list. The "one option" select code I use looks like this: http://pastie.org/684800 and it works perfectly. I'm a PHP newbie so I tried to modify the above code to achieve the result I want. Here's what I cam...

Best Resources for creating custom wordpress backends (advanced theme design)

I am interested in learning to create custom backends for Wordpress that extend the functionality.substantially. Anyone know of any books or resources that are particularly helpful for this. ...

Inserting a custom_field in Wordpress using MySql

I have asked here(http://stackoverflow.com/questions/1670838/inserting-a-post-in-wordpress-using-mysql) about how to insert a post in wordpress using mysql, but now I also need to insert some custom fields values, for example: if I have a custom_field called stack how can I insert a value for that custom field using mysql... ...

How to correctly modify this Wordpress Function for widgets?

I understand the below function for Wordpress widgets below, register_sidebar(array( 'name' => 'sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s"><div class="widgetTop"></div>', 'after_widget' => '</div>', 'before_title' => '<h2 class="accordion_toggle">', 'after_title' => '</h2>', ...

How to set up a website with WordPress ?

Hi, I'm a PHP developper, and i need for a client request to set up and create a template/theme for wordpress. I know a little about this blog engine, but i read i could use it as a CMS. As my website will be 6/7 pages so far. I'd have liked to know if it was just about writing a template, or will there be some others stuffs to do to...

How to setup .htaccess redirect for particular category blogs (wordpress)

I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST%5FTITLE%/ Now i want to redirect a particular category blogs to a different domain. The URL Scheme on that other domain is similar. Please suggest me how can i do it using .htaccess ...

getting posts from Wordpress to out of WP in codeigniter view

Hi friends, I use codeigniter and need to display last 3 posts at footer from blog as blabla.com/blog located. when I create a test.php file as below. it works well, test.php <?php // Include Wordpress define('WP_USE_THEMES', false); require('./blog/wp-blog-header.php'); query_posts('showposts=3'); ?> <ul> <?php while (have_posts...

WordPress Theme variables scope

I need to create a variable that can be accessed throughout my WordPress Theme template files (index.php, header.php etc..). I know function definitions go inside the functions.php template file (in your theme path), but there's no such thing for variables. For example I constantly need to retrieve Categories in my Theme, so I would li...

Complicated MySQL Query

I'm creating a site in wordpress which holds information on television programs. I'm using custom fields to select each post. The table looks something like this +----+---------+----------+------------+ | id | post_id | meta_key | meta_value | +----+---------+----------+------------+ | 1 | 1 | name | Smallville | | 2 | 1...

External form causing wordpress 404 error

I have a file outside a Wordpress install that contains a form that submits to itself. I can access and fill the form out, without validation the form submits and reloads as expected, but when using javascript to submit the form I receive a Wordpress 404. The URL of the file stays the same when receiving the 404, if I refresh the page ...

Retrieving widget data with MySQL query in WordPress

I've built up multiple dynamic sidebars for front page item manipulation. Each sidebar contains a Text widget, and I want to retrieve each widget's content (according to widget ID) from wp_options. Basically, the structure is dbName -> wp_options -> option_id #92 contains the following: a:9:{i:2;a:0:{}i:3;a:3: {s:5:"title";s:0:"";s:4:...

Wordpress Plug-ins: How-to add custom URL Handles

I'm trying to write a Wordpress Plug-in but can't seem to figure out how you would modify how a URL gets handled, so for example: any requests made for: <url>/?myplugin=<pageID> will get handled by a function in my plug-in. I'm sure this is a very simple to do, but I'm pretty new to working with Wordpress and couldn't find it in the d...

Is there a way to change (delete) a standard phrase going after a single post in Wordpress?

Hello everybody, my question is about Wordpress. Is there a way to get access to the phrase, going after a single post? "Enjoy this article If you have enjoyed this article consider subscribing to our RSS Feed" Thanks a lot) ...

When automatically updating WordPress, how does it grab files from another server and store them on my server?

When I automatically update WordPress, how does it grab files from another server and store them on my server? It doesn't have ftp access rights. Does anyone know? ...

Adding Up Values From A SQL Query

I have a table like this (using wordpress) +---------+----------+------------+ | meta_id | meta_key | meta_value | +---------+----------+------------+ | 1 | views | 3 | | 2 | blahh | a value | | 3 | smthn | boo | | 4 | views | 4 | | 5 | views | 5 | | 6 ...

Create WordPress Page that redirects to another URL

I wanted to create a new WordPress page that is actually a link to another site. The goal is to have the page show up in a list of my pages, but actually send the web user to the target URL. For example, say I want to include a page that indicates "My Photos" but actually redirects them to Flickr. I'm guessing one way to accomplish ...

creating rss.xml file for wordpress posts...

Hi friends, I'm researching at google for hours, but could not find anything :/ how can I create rss.xml for my wordpress blog? I do not mean feed://www.blabla.com/blog/feed/ ! I need the posts in .xml format. how can I create such .xml for my wordpress posts? I need http://www.blabla.com/blog/rssfeed.xml NOT feed://www.bl...

Wordpress Content Box not formatting correctly.

Does anyone else have this problem? When I am formatting things in the GUI in wordpress it looks great until I save the changes and view the page. Is this an issue with the style sheet? ...