All Questions

Filter by
Sorted by
Tagged with
3
votes
1answer
963 views

How to exclude posts of a certain format from the feed

I want to exclude posts from aside post-format in the feed. I have already checked up here about how to exclude posts from a certain post format from the loop but how to exclude posts from a post ...
1
vote
2answers
3k views

Sort admin area by custom Event Date field

There are several questions in here about sorting custom items in the admin section. However, I cannot find a specific answer anywhere. Here's my specific problem: I'm using MagicFields to create ...
2
votes
3answers
5k views

3.1.3 auto-upgrade

Any ideas on this? I earlier got an error on some update directory, and manually deleted it (unfortunately I didn't write it down). I think I've done auto-upgrades on the same domain before. ...
0
votes
1answer
160 views

Get Page URI for QR Code PHP [closed]

I'm using the QR Code Tag plugin and can't get this to work. <img src="<?php global $qrcodetag; echo $qrcodetag->getQrCodeUrl('$_SERVER['PHP_SELF']',100,'UTF-8','L',4,0); ?>"> I ...
1
vote
1answer
197 views

Admin Theme customization

I followed instruction on the wordpress codex site on creating an admin theme via a plugin. I activated the plugin, but my stylesheet isn't being included in the <head>.. Here's my code: ...
17
votes
6answers
680 views

What questions do you ask when asked to give an estimate on theme development?

I just recieved an email that asked the following question: "How much will cost to code a WordPress theme?" I cannot answer this question without know the answer to a plethora of other questions. I ...
1
vote
1answer
2k views

How can I use AJAX to save/update a widget form?

My custom widget's form will have two pull-down menus: the content of the second menu is dependent on the user's selection in the first menu (think of the way Country and State/Province works). I ...
0
votes
1answer
63 views

Is there a wp-config.php option or constant that I can set to allow me to download nightly / beta builds?

Nightly Builds or Beta Releases? I like using the /wp-admin/update-core.php utility to update wordpress. But I'd like to be able to use it to download beta releases or nightly builds. Does anybody ...
1
vote
2answers
2k views

How to hide certain tags from the_tags()?

I need to assign some tags to my posts (for external use), but I don't want them showing anywhere that tags are listed. Can someone tell me how to do this?
0
votes
1answer
3k views

Remove filter and view options from custom post type edit screen

I have my CPT edit screen almost looking how I want it but want to remove the filter and view options from this screen as they are not needed for this interface. How do I remove them? Are there any ...
2
votes
1answer
140 views

Change names of pages in wordpress

I am inheriting a Wordpress site where the page names in URLs are very descriptive things like page_id=81. Is this something that I can change globally or do a simple search and replace on?
0
votes
2answers
71 views

Anyway to retrieve a feed of posts that have BOTH tags?

If I use the URL "/tag/tag1,tag2/feed", it will retrieve posts that have both tags. Is there anyway to do this and just get posts that have BOTH tag1 and tag2?
1
vote
1answer
1k views

has_term if/echo else/echo function

ok so i have a nav menu with the top level of menu items being static pages. When you highlight or visit one of them there is a sub-menu that pops up. Each one of them has there own sub-menu and each ...
1
vote
1answer
3k views

Create a new usermeta field for users

How do I create a new usermeta field with a drop down selection values? Im want to create a conditional statement for all users with a certain value of the new custom field I want. For example, The ...
13
votes
1answer
19k views

How to get featured image's width and use elsewhere in template?

I'm wondering if it's possible in the single.php template to use the width of the post's featured image elsewhere in the page. What I'm trying to do is add a div element on the page with the same ...
5
votes
2answers
9k views

How to effectively reset the post object after calling get_posts()

The function below is called from my index.php just below the main content block. Its purpose is to write out a link list of the latest posts. However, I need to reset the post object once this ...
2
votes
1answer
86 views

Is there any free (or cheap) software that can be used for testing WordPress functionality?

Is there any free (or cheap) software that can be used for testing WordPress functionality? I would like to create some test scripts and then them against my self-hosted WordPress installation.
6
votes
4answers
3k views

add meta box - custom field : which to choose?

i've just find out about the custom field, which makes it possible to add something near a post, but what is the difference between "add_meta_box" and "custom field"? Custom field is inside the "...
1
vote
1answer
447 views

Create own Wordpress shortcode gallery

How I can handle this shortcode: [my_gallery] img01.jpg img02.jpg img03.jpg img04.jpg [/my_gallery] I can't understand how to write a function, to handle image files name.
4
votes
2answers
13k views

How to display all custom fields associated with a post type?

What is the best way to display/dump all custom fields associated with a post? It doesn't have to be pretty, I just need to verify what is being saved in what field array for debugging.
5
votes
2answers
5k views

Wordpress Custom Post Types with a page as a parent?

I have a lot of custom type items in my new WP project, and for navigation reasons, I want to make the parent to some of them a Wordpress page. The problem is that apparently, Wordpress does not let ...
24
votes
3answers
5k views

'Global' settings page for multisite plugin

I'm working on a plugin that will be installed in a multisite instance. How do I create a single settings page that is visible at the "Network admin" level only - most of the guides i've seen relate ...
0
votes
1answer
265 views

Code for Category, Tags, Archive URLs

Working on an SEO plugin and stuck on something I thought would be simple. Looking for code to generate just the URLs for categories, tags, search, and date archives when on that archive set. So if ...
0
votes
1answer
1k views

CDN: Origin server URL, WordPress Core files installed in sub-directory

I've just purchased a plan with MaxCDN to deliver my content through CDN, but i've got a small issue before i create a pull-zone. I moved my WordPress core files out of my root and into a sub-...
0
votes
2answers
269 views

FB like adds WordPress install screen text to the wall

I have a site for a client that is behaving very strangely. You can view the site here http://cruisephotofactory.com When you click the like button in the sidebar instead of using the open graph ...
1
vote
2answers
526 views

“Duplicate” Posts Appearing Since 3.1.2 Update

I've encountered some issues on a clients site since upgrading to WP 3.1.2, and have this evening updated to version 3.1.3, only to find that the problems still persist. http://www.harmonyreins.com....
1
vote
1answer
2k views

Limit get_pages to only show 5 items

How can I limit the get_pages to only show 5 items? I thought adding 'number' => 5 to the array would limit it to 5 but it doesn't show anything. Here's my code: <?php $pages = get_pages(...
0
votes
3answers
4k views

WPML custom post type - not translated

I just installed a WPML, but my custom post types is showing just in default language, if I am switching to other languages, it will show the same posts as default language, but in wordpress panel ...
1
vote
1answer
2k views

Display all WP Errors together during form validation

I have a custom front end page where users can post from. All works fine but the i want if more than one field is empty then the errors for all empty fields should show all together. Right now the ...
7
votes
5answers
14k views

Fail to compare dates in meta_query

This is the piece of code I use to get event posts whom date metadata is newer than today : <?php query_posts( array( 'post_type' => 'concerts', 'meta_key' => '...
2
votes
2answers
3k views

Redirect after registration in BuddyPress [closed]

In Buddypress, after Registration first step, users are redirected to Change Avatar step. Im trying to find a way to redirect to an alternate page, for example: http://www.mysite.com/yeah Im using the ...
0
votes
2answers
787 views

Add filter to the end of the post

I have a function which is used to display a video, I want this video to be shown after the post, It should display the video when the post ends. I have added filter to it, but then too, the video is ...
3
votes
2answers
5k views

How to add option box in “Edit Post” plugin API?

This might be kind of simple, but I couldn't find a way to do so in the WP docs. My plugin currently uses custom fields for things I could just have radio buttons/check boxes for each post. How do I ...
3
votes
3answers
518 views

Populate Taxonomy from Custom Posts

I have a custom post I am looking to categorize via a custom taxonomy. The taxonomy itself I want to be dependent on the items of another custom post type. Is it possible to populate a taxonomy via ...
-1
votes
1answer
3k views

Why does 'exclude_from_search' exclude a custom post type from WP_Query?

In WP 3.1, it appears that setting 'exclude_from_search' = TRUE for a custom post type excludes the post type not just from searches on the front-end, but also from any post query using 'post_type' = '...
0
votes
2answers
2k views

any way to access variables from within post editor?

I am trying to assign a variable either from my template file or otherwise which I can then access within the post editor. Any ideas?
0
votes
3answers
1k views

Custom metabox translation

I have created a custom post types and added some custom metaboxes and now I am wondering witch translation plugin I use for my site? I don't have experience with none of them, so I don't know who ...
1
vote
1answer
4k views

Display Custom Post Type Taxonomy Child Categories and their Posts

How can I do this for custom post type taxonomies? <?php //get all child categories for category 15, then for each child category display the posts $parent_cat = 15; $taxonomy = 'category'; $...
0
votes
1answer
162 views

WordPress archives widget causes Bing bot 404 errors

I'm using the standard WordPress Archives widget in dropdown mode on my blog. But apparently the Microsoft Bing spider gets confused by it, because the dropdown code looks like this: <select name="...
9
votes
4answers
9k views

I Want to Get A Plugin Version Number Dynamically

Howdy, I recently cribbed W3TC to implement an "in-update" changelist display (very cool), in my plugin, but there's an awkward bit of code I'd prefer to avoid. If you look at the top of this file, ...
1
vote
1answer
619 views

Populate Custom Fields in a Custom Post Type?

I want to set up a basic 'post rating' system for my site - I don't want to use a plugin - so I want to add the custom field 'rating' to each new custom post and populate this field with the number 1. ...
0
votes
1answer
201 views

How to add custom options for plugin into the add post screen - like yoast seo

On Yoast seo, when you create a new page it gives you the ability to alter titles, etc. This is added by the yoast module. I am writing a plugin, that can have other things attaching to a post. How ...
-1
votes
1answer
284 views

How to insert a column (part of theme) in the middle of the content body?

Was asked to simplify the question. Here we go: As you know, the "content" part of a WordPress posts all appears together. What I'm trying to recreate is how on several news sites, they'll have the ...
0
votes
1answer
152 views

What templates/funtions needed in custom theme to allow comments the new 3.0 way

Hi: I have been using the comments.php, comments-popup.php, single.php and loop from the Kubrick theme to create my blog functionality in themes I build from scratch. But with WP 3.0 there's a new ...
0
votes
1answer
568 views

Global MySQL replacing of text patterns/matches

I'm familiar with this method... update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’); The problem is, I'm trying to do this to all ...
0
votes
1answer
276 views

Cache DB queries result

On my new site i am displaying most of the images instead of text. I show images for recently written, recently viewed, mostly viewed posts etc. I found that in 40% of cases posts are same. so i need ...
2
votes
2answers
438 views

Data Validation

I'm using Wordpress as CMS and have a checkout page where info is inserted into the db using $wpdb->insert. I have 2 questions: Is 'sql injection' already a part of that function or do I need to ...
18
votes
3answers
33k views

Attaching taxonomy data to post with wp_insert_post

I am trying to implement a front end posting system which shows taxonomy data in several dropdown select fields. Each of the dropdowns is named by using the "name" $arg in wp_dropdown_categories(). ...
8
votes
3answers
745 views

Plugin directory “Last Updated” not changed after initial commit?

I released the first version of my Rewrite analyzer plugin with a commit on 2010-05-12. The WordPress.org plugin directory however still displays 2010-11-27 as the "Last Updated" date - this is the ...
2
votes
2answers
287 views

Wordpress Plugin Setting's POST

I've developed a few plugin for Wordpress. Currently I've not been able to replicate the way wp save settings. I've a setting page which I learned from a tutorial. It POST to option.php, and wp take ...

15 30 50 per page