All Questions

0
votes
1answer
1k views

Fatal error, is this because of host?

Suddenly I am getting the following error on my website, I don't know why, but I think this is because of shortage of RAM or Memory in the host? Is it true? Error: Fatal error: Out of memory (...
2
votes
3answers
3k views

Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?

I just installed WordPress 3.0.4 on a GoDaddy hosted server. And I've been having a problem with my .htaccess file. For some reason, WordPress automatically erases all the mod_rewrite configuration ...
2
votes
1answer
3k views

One page - Multiple parents?

I'd like to have the same pages assigned to two different parent pages, to save me making separate pages for two sections that contain mostly the same info. I'm using the WenderHost Subpages widget to ...
0
votes
1answer
161 views

Letting the user define the arguments in a custom loop? (the “$custom_posts->query(…)” part)

I use the following to retrieve a post from a custom post type and custom taxonomies: <?php // Create and run custom loop $custom_posts = new WP_Query(); $custom_posts->query('post_type=...
1
vote
1answer
383 views

Why is the post title and content automatically being displayed in the post thumbnail (Featured image)?

I use the following code to show the post thumbnail (only): <?php // Create and run custom loop $custom_posts = new WP_Query(); $custom_posts->query('post_type=page_content&...
0
votes
1answer
305 views

get_categories exclusion issues

In the script below i'm trying to pass category IDs to exclude, however, the category list still includes children of these categories and i can't figure what's wrong. Can anyone see what I could be ...
2
votes
1answer
201 views

Prevent five different copies of jquery from being included on every page

Many wordpress theme, plugin, and widget developers seem to think that the only way to use jquery on the page is to include their own copy. On some pages of the site I'm developing, there are as many ...
3
votes
2answers
230 views

How to test a WordPress plugin through the upgrade automatically feature

Last week I had released a version of a WordPress plugin that works if the user was doing a fresh install, however if they already had the plugin and upgraded it using the WordPress upgrade ...
33
votes
3answers
35k views

How do you properly prepare a %LIKE% SQL statement?

I'd like to use a LIKE %text% statement while still using the WordPress $wpdb class to sanitize and prepare input. SELECT column_1 from `prefix_my_table` WHERE column_2 LIKE '%something%'; I've ...
0
votes
1answer
263 views

Wordpress homepage hangs in IE browsers

Anyone has any insight why http://www.quantnet.com loads fine in FF, Chrome but hangs in IE for 20 seconds or more? I have been hunting down the problem but reach an end.
5
votes
1answer
3k views

How to order adjacent posts (prev / next) by custom field value?

I am using the More Fields and More Types plugins to create a custom post type called product. This custom type is based on the Post type. One of the fields is named lot which is an integer ...
1
vote
1answer
172 views

Replacing Scripts in Admin Load_Scripts

I'm currently creating a plugin that requires me to overwrite one of the Wordpress admin panel javascript files. I have recreated the file with the changes, I need to know how to replace the existing ...
0
votes
2answers
3k views

How To Remove The “Click here to cancel reply” Link From The Wordpress Comment Form

I am trying to remove the "Click here to cancel reply" link from the Wordpress comment form on my posts. In the document there is an argument you can supply to the comment form function to remove the ...
0
votes
1answer
1k views

changing body background color for custom post type in admin backend

i have a custom post type called 'auctions', and i'd like to be able to visually differentiate auctions from posts and pages in the backend by assigning a different background color to the auction ...
3
votes
1answer
1k views

How to show custom message once on plugin activation?

I know by watching the akismet plugin source how to show a custom message on the plugins page, but I want my message to appear only once after my plugin is activated. How could i do this?
0
votes
1answer
841 views

Why Do I get “wp_remote-get: could not handle for fopen()”?

I'm trying to get an image from Google but... wp_remote_get returns me: Could not open handle for fopen() to https://ajax.googleapis.com/ajax/services/search/images? v=1.0&q=whatever.whatever&...
4
votes
1answer
3k views

Sortable admin columns, when data isn't coming from post_meta

I have a custom post type that uses a custom taxonomy. I'm imposing a limit of a single term to each post (using a custom meta box drop down on the edit post screen for the CPT). The term for the ...
3
votes
4answers
7k views

How to flush feed? Or set timeout on feed so that it isn't cached?

I'm trying to add a custom feed format to my site (basically exporting data to an Excel file) and I'm getting confused by the feed caching settings. I can't figure out how to flush the cached feeds, ...
1
vote
1answer
638 views

Create/Edit posts and auto-redirect back to listing page

Is there any way to possibly force a redirection to the post (type's) listing page (edit.php?post_type=<post-type>)? EDIT: Since I got a LMGTFY link, let me clarify before I downvote it. Is ...
7
votes
3answers
7k views

How can I auto-add my posts to my site's Facebook fan page?

My readers are telling me to manually add my posts to my fan page, but I'm trying to reduce steps and keep from forgetting. Anyone know how I can automate this?
3
votes
4answers
12k views

Override the default number of posts to show for a single loop?

Is is possible to override the set # of blog posts to show per page (as defined under Reading Settings in the WordPress admin)? I want to make it so a custom loop that I am using will show an ...
0
votes
2answers
117 views

Anyway to specify what should appear in <title> in .php file?

Is there anyway I can set what text should appear in the tags before get_header() is called in my .php files that are inside my theme's directory?
2
votes
5answers
5k views

if in_category on archive.php

So I'm trying to do an if / else statement on an archive.php template. I setting up my archives using WP Smart archives reloaded (http://wordpress.org/extend/plugins/smart-archives-reloaded/) The ...
0
votes
1answer
931 views

WP Insert Post and then go to post

After an WP_insert_posts array has been executed how do I then redirect the browser to that post. Many Thanks,
1
vote
1answer
1k views

Theme option editing capability problems

I've setup some theme options using this helpful guide as a template. I want to give my editors the option to update these theme options, so I granted the edit_theme_options capability as mentioned ...
16
votes
10answers
14k views

Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?

I just figured out the menu_position parameter it seems like you can place the menu of your custom post type almost everywhere. Except above the Posts menu! How can I accomplish that?
0
votes
2answers
341 views

jQuery UI & Admin (Calendar)

Am I smoking crack or why wouldn't this work? :/ This all seems pretty straightforward: function admin_head() { ?> <link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url')...
1
vote
1answer
175 views

Script only partially runs on theme activation, but runs fully on deactivation?

The code below is near the top of my functions.php and is set to run only when my theme is activated: if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ) { ...
0
votes
2answers
6k views

Strange behavior with a redirect loop - involves WPML multi-language plugin

I have a (client) site located at http://internationalgateway.us/. We are using the WPML Multilingual CMS plugin. When choosing another language from the homepage (in this case French, since that's ...
5
votes
2answers
14k views

What's the URL for a category archive?

If my category URL is: /blogs/category/foo and my archive URL is: /blogs/2011/02/ what's the URL for 'foo' blogs from February 2011?
3
votes
3answers
7k views

Need help with rewrite_rules_array

I have a page that I access at /category/tasks and the file is located at wp-content/themes/my-theme/tasks.php. I would like to make it so I can add a flag after tasks and pick up the query strong in ...
0
votes
1answer
2k views

Custom post type index (maybe using get_template_part)

I just created a custom post type "publication" with the slug "publications". Now im stuck trying to view all the publications index in a URL like: http://www.myExampleSite.com/publications Do I ...
3
votes
4answers
15k views

Limit WP_get_archives by category?

I have two categories on a site - news which contains news posts and blog - which contains blog posts. Each page has a wp_get_archives in the sidebar. I'd like to limit the archive listing by category ...
0
votes
1answer
814 views

Drop-down filter doesn't retrieve custom taxonomies

Wordpress 3.0.4: Wordpress 3.1 RC4: functions.php (The last part is the one involved in filtering and displaying the drop-down menu): <?php /** * Create the Page Content custom post type and ...
1
vote
1answer
1k views

Use WP 3.1 Internal Linking 'widget' as a meta_box

There is lots of information out there on how to customize meta boxes added with add_meta_box(), such as enabling WYSIWYG editors on textareas and uploading images. What I have yet to find is a way ...
2
votes
2answers
3k views

How do I determine if a category exists by ID?

I know I can get a categories ID by calling get_cat_ID('category-slug'), however, what is the method to call to determine if a category exists by ID when you don't know the slug? In other words, I ...
1
vote
1answer
775 views

Disable author profile in post

I am managing a WP 3.0.4 site where every post has the profile of the author appended. Where is the setting to disable this?
4
votes
3answers
2k views

How do I filter the excerpt metabox description in admin?

I want to change the default "Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts." help text below the Excerpt input area to ...
0
votes
2answers
201 views

Subscribe to email

I am looking for a way where, the users of my website will subscribe to a post, and when my post will be edited or updated they will be emailed by my posts contents, My post contains, article, ...
0
votes
1answer
54 views

How to set a page as homepage in stead of the newspages?

I need some help. I want the same as on this site: http://www.123ipad.nl/ (this is my website) When you go to the home url you come to a page in stead of the newspage. The newspages are in the submap /...
21
votes
4answers
62k views

Add custom field to Category

I'd like to add custom fields to a certain category. A category only has the following fields: Name: Slug: Parent: Description: Since I have a TV Series Site, I want to add some more fields, I ...
0
votes
1answer
2k views

Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type

I'm using the following code to create drop-down menu and filter button for two custom taxonomies assigned to a custom post type called Page Content (full previous code here): function ...
0
votes
1answer
256 views

How do I manage my users post before publish?

In my website , I allow to the new user to write posts. but the problem is when the user write post. the state of post is publish. it is appear in front page. I want to read it before the publish , ...
0
votes
3answers
480 views

Custom Post Type to override theme's CSS & HTML from Plugins Dir?

I have a plugin that creates a custom post type called Squeeze Pages. It has various short codes users can enter to make a squeeze page but I'm not sure how I can go about making the squeeze pages ...
0
votes
2answers
1k views

Have working sql query… trying to adjust it to use $wpdb

So I have this code that queries a custom plugin generated table in the wp database. It works perfectly as is. But I'm trying to adjust it to use $wpdb instead of the $con function I have set up. ...
0
votes
1answer
110 views

Limiting title characters in the AZIndex plugin

I am using the AZIndex plugin to list post titles in my site and i would now like to limit the title characters, how would i do that?
1
vote
1answer
2k views

How to get pages id in array in get_pages?

$page1 = get_option('home_page_field'); $page2 = get_option('home_page_field1'); $page3 = get_option('home_page_field2'); $page4 = get_option('home_page_field3'); $arrData = array( $page1, $page2 , $...
0
votes
2answers
200 views

Retrieving only custom post types with two required terms (from diferente custom taxonomies each)?

I created one custom post type and two custom taxonomies. register_post_type('blocks',array( 'labels' => array( 'name' => __( 'Blocks' ), 'singular_name' => __( '...
0
votes
1answer
352 views

Showing different posts on category pages

I'm using the following code to display posts on my category page but would like to carry the same format through on to the second page of the category as at the moment it moves to the second page but ...
0
votes
1answer
1k views

Adding a second custom taxonomy to a custom post type (both shown in its table)?

The following code provided by Mike Schinkel, creates a custom post type and a custom taxonomy. It makes the taxonomy to show up in the custom post type's column. Finally, it inserts some default ...

15 30 50 per page