All Questions

4
votes
1answer
14k views

Check for success of $wpdb->update() correctly

My code is if( $wpdb->update($tableName,array('opt_value'=>$cInfo),array('opt_name'=>'showWeatherWidget'))) //show success message else // show failure message This is not correct, ...
1
vote
1answer
740 views

query_posts() on key's value, or key's existence

I recently started using simple fields on a project to differentiate between types of posts. All posts from now on will have one of four possible meta values associated with this (Story, Article, ...
7
votes
2answers
5k views

how to create a conditional content_width for a wordpress theme?

I'm trying to create a conditional statement for the content width in the functions.php of my theme. So some categories will have a content_width of 580, some will have 900. This will make the oEmbed ...
1
vote
2answers
479 views

Proper indentation of code generated inside hooks

I really like having my code all properly indented and all, but all the code generated by wordpress, like the one that appears on the header when we use wp_head(), loses all the indentation. I think ...
2
votes
2answers
1k views

Using categories & “stickyness” together

I've got a custom query on my homepage showing all posts in a certain category. I need this query to respect sticky posts, but it seems from my research that category queries ignore stickyness. My ...
1
vote
1answer
3k views

The entire content of my Wordpress page has disappeared

I have a blog installed on my site using Wordpress. Last week I upgraded Wordpress from 2.6 to 3.0.4 (I had to do this manually). All went well, or so I thought, but I have just noticed that the ...
8
votes
1answer
6k views

Combine multiple plugins into one?

I've collected a few plugins that each have specific functionality I need for what would otherwise be a single large plugin. Is it possible to bundle these into a single installable zip?
2
votes
3answers
200 views

Reducing spammy user sign-ups

After following the advice in a previous question (here) I've managed to nuke my spam comments. I now, however, find that every day I have a few new members sign up to the site with rubbish e-mail ...
0
votes
2answers
2k views

What are the additional fields in wp_comments used for?

I'm working on a rather odd implementation that stretches the limits of WP a little - its a healthcare site where patients are a custom post type and procedure requests related to each patient are ...
2
votes
1answer
276 views

Adding Google Custom Search to a Public Released Theme

I'm not sure if this is possible with the newer Google AdSense code which has the AdSense server holding all the colour settings etc... via an ad channel, but maybe there's a legacy code that will ...
0
votes
2answers
3k views

Sorting problem with 'query_posts' funcion in wordpress. Sort by custom field not working

0 down vote favorite Hi, I am working with wordpress where i have a event listing system. There is a custom field in my post called starting_time which is unix timestamp. Now i want to short all ...
8
votes
4answers
33k views

How to integrate custom database table in Wordpress and using Wordpress functions

I'm on Wordpress 3.0.4 and I'm having a hard time deciding which way to go. The following is my problem: I have a mysql database table widgets, with about 10 properties like id, size, color etc. ...
0
votes
2answers
582 views

Why are my paginated result links not working?

I've developed a custom post type for WordPress that has quite a few entries that require pagination. I used the *paginate_links* function and it creates the pagination appropriately, rendering links ...
7
votes
3answers
3k views

How do you store options with a:n:{{}} syntax in wp_options?

I'm checking out how a particular plugin works and noticed that it stores its data for option_value in wp_options in this array format... a:2:{i:20;a:2:{s:8:"original";s:15:"20.original.jpg";s:9:"...
0
votes
1answer
2k views

How can I control what / how much text is in my RSS feeds?

Currently, my RSS feeds show the entire text from main text field. I only want to show parts of my text, preferrably my intro text, so that users have to visit my page to read the rest. I've ...
3
votes
3answers
3k views

Black and White thumbnails

There are ways to convert color image to black and white on the client side with javascript. However, it won't work in all browsers and it's slow. Is there a way to convert Wordpress post-thumbnails ...
0
votes
1answer
1k views

I'm not able to get RSS feed working. I get 'XML parsing failed'

After I updated my site, I'm not able to get the RSS working. I used to get this RSS icon in the address bar in my web browser (opera), but now it's not there any more. I try accessing the following ...
0
votes
1answer
109 views

Why do sticky posts show in this menu?

The code below writes out a list of the most recent posts. However, it does not appear to be skipping over sticky posts although I'm using 'post_not_in' => get_option('sticky_posts'). What am I ...
2
votes
1answer
951 views

How to create a plugin that only operates on the home page?

I have a plugin that I only want to execute when the home page is being viewed. How would I stub out my plugin in order to make this happen? This is does not work... <?php /* Plugin Name: My ...
51
votes
5answers
56k views

MySQL Database User: Which Privileges are needed?

The short installation instruction for WordPress ("5 Minutes") state that: Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and ...
2
votes
2answers
1k views

permalink changed, now getting 404 for every pages

i have my website with permalink, till now everything was fine, but few days before i changed my permalink, now everything is going wrong, now each and every page i am getting 404, even my about-us ...
1
vote
1answer
111 views

How can a single line in a blog post take down my server?

I've been trying to write a post about a simple Windows Powershell script for the last few hours, but when I try to preview the post with the script included, it takes down my server. Unfortunately ...
13
votes
3answers
130k views

Query for custom post type? [closed]

I have installed the Custom Post Type UI plugin. After activation of this plugin I have created a custom post type called portfolio. Now I want to use this on the portfolio page in the front-end. How ...
0
votes
1answer
394 views

how to reset metabox excerpt to open

For some reason the excerpt box on the new posts page (post-new.php) is always closed. I can alter that with firebug, but it should be open anyway. There is a "closed" class being added by someone ...
8
votes
4answers
7k views

Are There Any Plans for Wordpress to Support Databases Other Than MySQL?

I've long wished Wordpress would support SQL Server, but it would also really amazing if it supported MongoDB (for example.) My question is are there any plans to do so, at all? Is the core ...
0
votes
1answer
2k views

Dynamically Set Wordpress Post Title To The Category Name

I have a few custom post types set up. However, a couple of them have the title field removed from the edit screen because a title does not make sense in some aspects. However, I now find that all ...
1
vote
3answers
815 views

Is It Possible To Have Shared Wordpress Custom Post Types?

I am developing a website for a record label and the basically it uses quite a few custom post types for various pieces of information. My problem is that I feel the same bits of information are being ...
26
votes
4answers
47k views

Is there any way to rename or hide wp-login.php?

Any way to change the wp-login.php url? It seems insecure that everyone that's ever used Wordpress could easily see if your site is using it, and get right to the login page. There used to be a ...
2
votes
1answer
2k views

Passing page url into a custom field via the Press-This bookmarklet

Here's my situation. I want to use a modified version of the WordPress Press This bookmarklet to pass the current page URL to a custom field on my post. In this case, let's say my custom field is ...
3
votes
2answers
174 views

Email stats at Ma.tt contact form

Curious to know if there is a handy solution for showing cool email stats like Ma.tt's contact page http://ma.tt/contact/ Inbox: 157. Low priority: 1,461. Unknown: 155. I’ve sent out 920 emails ...
2
votes
4answers
14k views

Get current page's taxonomy

I've got some pages with a custom taxonomy for each page and i'm trying to retrieve this taxonomy on the page. I'd basically need something like the_current_taxonomy() like the_title(). This has to ...
0
votes
2answers
190 views

hosted wordpress.com to local directory?

This question was posted at onstartups - one that I frequently hear. Figure that I would ask the experts over here - can one maintain a hosted wordpress.com blog yet make it a subdirectory under ...
1
vote
2answers
832 views

Help with issues on “Adding a Taxonomy Filter to Admin List for a Custom Post Type?”

This question relates to a solution found here from user somatic and mikeSchinkel I am testing somatic's solution, and it loads and populates the dropdown with no issues, but When you click filter, ...
0
votes
1answer
703 views

Display posts from category in post content?

I am developing a website using WordPress. As I don't want the sidebar, I removed 'get_sidebar()' from my page. But I need to place a category in the content part (like a category for latest news) - ...
1
vote
1answer
1k views

Post Thumbnails multiple sizes

I am working on a theme that shows 200/200px post thumbnail on the home page and 500/300px image on the category page. Here is what I have in fuctions.php but it doesn't seem to work (only the ...
3
votes
5answers
5k views

WP Page and Subdirectory with same name

I have a subdirectory within my WP installation called labs. I created a WP page called labs as well. When a user hits mydomain.com/labs/ I want them to load up the WP page. But instead it's loading ...
0
votes
2answers
363 views

Automating Excerpt

I am trying to automate editors work by automating excerpts. My solution works but there are few problems with it: If a post has images/broken html at the beginning it breaks the layout. Substring ...
1
vote
1answer
670 views

Invision + Wordpress integration

I'm trying to integrate Invision Power Board into our website, Wordpress by using IPB Website Integration (IPBWI). I have used the script sometime before on a static website, but I'm having trouble ...
1
vote
2answers
1k views

Creating external apps Wordpress / How they work

I was wondering how does external app works for wordpress.com or wordpress.org. Directly connecting to the wordpress database seems a bad idea to me. Questions How can I create an app or get / post ...
1
vote
1answer
817 views

Exclude pages in archives results

So, i got a custom post type applied to different posts and also a page. When i display this page, it shows some content (text), and at the bottom a link to get the list of the products related to ...
-1
votes
2answers
207 views

Free web host for WordPress blog [closed]

Is there any free web hosting site host the wordpress blog?
3
votes
2answers
1k views

Setting WP Admin passwords to expire

I'm aware it's not a feature of Wordpress, but I was wondering if there was a way or a plug-in (haven't found one from searching) that allows me to force a user to change their password after a ...
0
votes
4answers
392 views

Are plugins like WP Robot considered as spammy by the community?

WP Robot looks like a very powerful plugin, but one which could be used for all sorts of spammy websites. Just wondering what the general community opinion is of these plugins? Are they useful or ...
0
votes
1answer
2k views

List Child Categorie and hide the parent

Greetings! I'm trying to list child categories in a sidebar, but also hide the parent cat. I'm using this at the moment: <?php wp_list_categories('orderby=id&show_count=0&...
3
votes
1answer
157 views

WordPress Multisite Network installation and dev questions

Please go easy on me. I'm a clutzy dinosaur. I currently have a large, unwieldy website hand-coded in html/css with php includes. It currently has a single WP installation in a subdirectory. The plan ...
1
vote
1answer
121 views

How deactivate the http-api

give it an tipp or solution for deactivate the method request() in class WP_Http_Streams? I use WordPress also on offline-servers and have wp_debug true for development and tests. But i have many ...
1
vote
3answers
2k views

How to change sidebar per page?

I am new to theming with wordpress. I have a theme layout with one sidebar at the right side of the website. Now on my homepage and one other page i dont want to have the sidebar. On all other pages ...
1
vote
1answer
2k views

Remove/Add widgets from/to the Available Widgets pool

Is it possible to remove/add widgets from/to the Available Widgets pool (either by plugin or editing core files)? There are 3 widget files located at: /wp-includes/widgets.php /wp-admin/widgets.php ...
2
votes
4answers
215 views

Multiple information using custom post type

I made a new custom type, it's working fine. My question is: If i want to add in a single post that custom-type with different informations for about x times...how should I do this? Example: Let's ...
4
votes
4answers
1k views

order posts by date like craigslist

the image is worth a thousand words. take a look at it. you know how craigslist has posts organized by date ..ex Tue 3 post links for tuesday Wed 4 post links for wed Thurs 5 post links for ...

15 30 50 per page