All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

How to return HTTP 404 when no search results found?

When user search and there is no results found wordpress still return 200 OK. I want to change it to 404 Not Found. Is it possible to return 404 Not Found header in search.php? If yes, how to do that?....
0
votes
3answers
1k views

Sort taxonomy page alphabetically by meta rather than default post date

The user starts at a page showing posts of custom post type, "agent". Each post displayed shows a region/custom taxonomy it belongs to and links to a page that shows all posts in the region the user ...
0
votes
2answers
958 views

Why after a form post back, I get 404?

I am creating a contact form page. Perhaps I am doing it wrong? I have something like <?php // even when I remove this validation block it fails if (isset($_POST['name'])) { // do validation .....
0
votes
1answer
89 views

Wordpress text filed input only inter value?

All Now i am using WordPress, here right now i have a problem How can i valid my text filed input only inter value. Here is my code <p> <label for="<?php echo $this->get_field_id('...
1
vote
2answers
32k views

How to set up WPLANG in wp-config.php for 4 languages?

Good day! I don't know much code so I've been researching on how to modify my wp-config.php file so that the content and widgets of my site will show in the four languages (aside from English) I have ...
1
vote
1answer
3k views

Adding the Admin Bar to a page with a custom template

I created a stripped-down page template to use for my landing pages. But I must have cut too much out of it, because I've lost the WordPress 3.1+ Admin Bar. What functions do I need to call to get ...
8
votes
1answer
1k views

Are drop-in plugins a product of design

Were drop-in plugins - when you copy a plugin directly inside a theme - a product of design. Or did the practice arise "organically".
0
votes
3answers
3k views

Displaying Meta-Box Data Properly

Quick and dirty, I have meta boxes pertaining to concert information. (i.e. venue and location) and am trying to figure out how to properly display them in my post. At the moment to display the meta-...
0
votes
1answer
213 views

Wordpress function.php on ZendFramework CMS

I'm working on a CMS based on Zend Frameowrk and I'm triying to get the mos usefull features from wordpress. One of these is the use of functions.php in the template directory and I think I could do ...
1
vote
1answer
3k views

Getting template_include to work when allow_url_include is off?

I'm working on a plugin that creates a custom post type and I would like to display a custom template without modifying the theme. Here's the simplified code I'm working with: add_filter('...
0
votes
1answer
3k views

How to count post type that has a particular term?

What is the best method to count the number of posts in a post type that have a particular term? I don't believe get_posts accepts a term query and I have had no luck with new WP_Query, though I might ...
0
votes
1answer
1k views

Dynamic User State & City selection

I need to implement a state-city selection for my users to choose from. Where they first choose their state and then there is a city drop down field that shows only the cities in that state. ...
0
votes
2answers
452 views

How to query the latest 5 posts and sort them by title?

I'm looking to draw a menu listing of the latest "n" number posts, where the number "n" will be a user defined setting stored as an option. n = 5; //Pull the latest 5 posts from the database. The ...
0
votes
1answer
314 views

How do I choose not to display the title header on a specific page?

I would like to have one specific page on my WordPress blog omit the header . Is there a way to wrap that title code from page.php in my WordPress theme in an if clause that specifies the page I do ...
2
votes
2answers
3k views

How to count media attachments?

How do I count the number of media attachments a specific post has? Output example: This post has 22 photos. Thanks!
3
votes
3answers
4k views

Easiest way to make post private by default

I don't know how to make a plugin so I can't do what's suggested here How can I make it so the Add New Post page has Visibility set to Private by default? so what's alternative ?
2
votes
2answers
2k views

Disable Outbound Web Requests

I've setup wordpress on AWS. I want to reduce as much network traffic as possible. What services/jobs do I need to disable in Wordpress?
5
votes
1answer
216 views

Help making my pagination plugin better

I'm not sure if this is the right place to ask for this kind of help since is not an actual question but hopefully I can learn a thing or two. I'm developing a plugin (my first one) inspired in the ...
2
votes
2answers
173 views

How can I get a list of plugins and which blogs are using them?

I'm about to upgrade my Wordpress MU installation to wordpress 3 Before I update, I want to find out which blogs use which plugins. I don't see a way to do that in the UI, is there? What about a ...
0
votes
2answers
816 views

Content DISAPPEARS when simply adding normal text for ONE POST ONLY

This is the oddest thing I've ever seen on wordpress. Here's my problem: I have a whole ton of text. But the last few lines I have this: < blockquote>[Laughs] I'm doing the exact same thing ...
5
votes
3answers
26k views

Query menu_order custom post types

I added 'supports' => 'page-attributes' to my custom post type, and now i have the meta box for page ordering. When i use the argument 'sort_column' => 'menu_order' with get_pages() on my ...
0
votes
1answer
1k views

Custom select box meta field

For my custom post type i needed to add the Attribute Meta box, but i wanted to add an extra field to it. So here i have copied the Page Attribute meta box code and added my select options, but i ...
0
votes
1answer
4k views

Automate post update for all posts?

I have managed to fill custom fields with certain predefined values of all my post, but the changes don't take effect until I manually update the posts. Example: // Predefined variable and value $...
0
votes
1answer
318 views

Trigger language change in Wordpress

I have read this: http://blog-en.icanlocalize.com/installing-wordpress-for-multiple-language-blogs/how-to-localize-wordpress-themes-and-plugins-with-gettext/ Right now, I have qTranslate installed ...
3
votes
3answers
148 views

References to other site everywhere in Wordpress site

I am relatively new to Wordpress, have been handed a site developed by someone else on one server, and have to deploy it to another. This site has bbpress installed, plus a load of other stuff. ...
0
votes
1answer
2k views

If have posts a week old, display, else display a different loop

This is what I have. <?php $week = date('W'); $year = date('Y'); $projects_in_news = new WP_Query( array( 'post_type' =>'news', 'posts_per_page' =...
0
votes
1answer
941 views

Set (featured) thumbnail for post?

I'm using wp_insert_post and media_sideload_image to create a post and attach a single image to the post. However, how can I mark this attached image as featured thumbnail? It would make listing the ...
8
votes
3answers
4k views

Delete original image - keep thumbnail?

I'm using a lot of thumbnails but never the original file. To save space, I'd like to prevent the original from being saved on disk but only keep a thumbnail of 100px. How can I do this? Thanks, ...
1
vote
1answer
2k views

can you call the alt tag for an image dynamically?

I need to call the alt tag for images on my site dynamically. The only thing I can find online is to use the post title function but that doesn't really help me out.
0
votes
1answer
150 views

Different post views for different category views

In my blog, my "pages" are really just posts sorted by categories. What's the best way to change the way the posts look for one of my category pages?
0
votes
2answers
311 views

Query add html after set amount of posts?

Is it possible to add some html after a set amount of posts? For the purposes of a slider after 6 posts i need it to enclose in a div/li or whatever then start a new div/li for the next 6 and so on. ...
-1
votes
1answer
9k views

contact form 7 captcha support anyother captcha plugin? [closed]

I am Using Wordpress. I installed Contact form7.Now I Want To Add Captcha with Contact form7.I Don't like "Really Simple Captcha" because it shows very simple images.Any other Captcha Plugin Support ...
4
votes
1answer
458 views

4 single sites VS multisite wordpress

We're currently running a multisite wordpress install for 4 sites. Running into problems with pretty much every plugin ever made (mostly issues with user account creation etc), I'd really like to ...
-1
votes
1answer
418 views

Wordpress - connection information

I am entering valid details, though wordpress keep prompting same as follows. What would be the wrong thing ? Edit : Even after modifying the permissions as follows, I am getting same errors.
0
votes
1answer
869 views

Full RSS feeds for Custom Post Types

I would like my Custom Post Types to bee full text feeds, with the whole content. This url of course works http://sitename.com/feed/?post_type=name, but I only get excerpts in the feed. Regardless of ...
0
votes
1answer
133 views

Installing a Plugin ( Which is already manually uploaded )

I need to install wordpress plugin for placing source codes to my blogs. See, the following snapshot describes that I have already uploaded plugin to proper place. I didn't make even a single change ...
4
votes
1answer
2k views

How do I turn off wordpress comments ability to capture a users ip address?

Going through the comments table on my wordpress site, I noticed that wordpress is storing the ip address of everyone who makes a comment on my site. How do I remove this functionality? I'm not just ...
1
vote
1answer
2k views

Switching database on the fly

I have read here about switching the current wp database on the fly using $wpdb->select('database_name'); Once done, I understand that i will have to issue the same statement to the original ...
0
votes
2answers
8k views

How to add search form in main page body?

I'm fairly new to wordpress. I'm trying to develop a website with search option to find available room information. I would like to add a search box where people would be able to enter their ...
1
vote
2answers
2k views

change captcha design in Fast Secure Contact Form plugin

I am using Fast Secure Contact Form plugin to create contact form widget.It working fine . Now i like to change captcha appearance. Original captcha generated by plugin But, I need to change it ...
2
votes
2answers
13k views

Restrict categories to a custom post type

In the WP-Admin when creating a post or a custom post type I want to restrict certain categories to a custom post type. For example, Posts will only be able to select Category A and B. And custom post ...
2
votes
1answer
2k views

how to properly list child pages in sidebar?

My pages menu is maximum 3 levels deep and I am having a hard time figuring out how to properly list the child pages in the sidebar. If a page is a parent I want to list it's direct child pages and ...
-1
votes
1answer
257 views

Add author section on Author archive posts

I was looking at the section where you click on the author name on the homepage posts. and it says the Archive posts from xxxx authors so I thought of that while ago I found that some website has ...
1
vote
1answer
200 views

Portfolio + Blog: multisite or plugin?

I need to display both a portfolio and a blog on a website, and as a relative newcomer to WordPress, I was wondering what the most effective way is to do this: install a plugin, or create a multisite? ...
1
vote
2answers
3k views

How to remove the comments feed from WP 3.1.1?

I've tried a number of solutions available on the internet, but none seem to work in WP 3.1.1. Thanks!
2
votes
2answers
4k views

Remove Post Page “View Post” Link

I have created a custom post type, but it just to list some data on a page and it doesn't have any single.php. How do i disable so on the post page when i click publish it doesn't show the "View Page"...
0
votes
1answer
434 views

Wordpress, custom post type and posts query help!

I have a homepage witch i am trying to query a custom post type as well as everything from the default posts, right now i have 2 loops running everything looks good except i want the 2 different ...
2
votes
1answer
2k views

sortable columns on a custom post type won't work

I have picked through Scribu's post very carefully and cannot determine where the issue is. Here is the code: // Register the column function event_date_column_register( $columns ) { $columns['...
2
votes
1answer
49 views

The effect of x() family of functions

So I know that _x() and it's wrappers allow a developer to specify the context of a translated string. I'm pretty clear on "how" to use this function as well as "why" it should be used. I am wondering ...
2
votes
1answer
1k views

Wordpress stripping html and script tags from some admin users on save

When I add content to a page as the original admin user, I can past in the following code and it saves fine (old google search set up by another user): <form action="http://www.google.com/cse" ...

15 30 50 per page