5
votes
1answer
2k views

Change custom post type to hierarchical after being registered

Very similar to this previous question: Changing 'rewrite' argument after custom post type is registered I am trying to make MarketPress Products hierarchical - I can do it with hacking the ...
0
votes
1answer
764 views

Custom permalinks not work on Nginx + Apache

I have strange situation...my permalinks not work after setup nginx to work with apache. permalinks work if they not finish with ".html", but work if finish with "/" ie.: this work: ...
1
vote
3answers
1k views

Redirection not working in this front end post submission form?

I found this tutorial to create a front end post submission form: It doesn't matter what I type on wp_redirect( 'http://www.google.com' ); I don't get redirected to anywhere. Just the same page but ...
0
votes
1answer
501 views

How do i configure my content to show full posts?

So my blog is currently http://www.joegilbertphotography.co.uk/blog/ using the “delight” theme. Can anybody tell me how on earth I change it so instead of showing excerpts of posts, it just shows the ...
0
votes
1answer
406 views

How to prevent URL-modification when page title contains digits only?

When I create a page whose title contains only digits - wordpress adds '-2' to the url, like it does in cases, where there is a page with the same name already existing. However this is not the case ...
0
votes
2answers
2k views

How to check main blog in a multisite using if statement?

I want to create one extra table filed if it is multisite's main blog (While plugin activation). I mean like this if (main blog) { execute this sql; } else { execute this sql } PS: This is ...
1
vote
1answer
133 views

How do I add a function on a specific post category?

I am using theme Twenty Eleven and am trying to add a vote up script in the content.php which only displays on a certain category.
0
votes
1answer
260 views

Can't assign another category other than Uncategorized int he following front end post submission form?

I'm using this front end post submission form that I took from this question: <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; $category = ...
-1
votes
1answer
224 views

Is diff/patch a good way to update wordpress?

I customized a few sites. On my own i updated wordpress by diffing the (old) version and my site. Than i moved the folder away and put the new wordpress version and applied the patch. It seemed to ...
0
votes
1answer
149 views

iPad WordPress theme?

I want to convert one HTML5/CSS3 theme in WP This theme is build for iPads, now my question is is that possible to convert it? If yes then how? I mean should i create each different page template ...
12
votes
4answers
31k views

Query multiple meta key values?

How to query for mutiple meta key values with the same key $querystr = " SELECT $wpdb->posts.* FROM $wpdb->posts, $wpdb->postmeta WHERE ...
0
votes
2answers
5k views

How to make tags show up in search results?

Im looking for a way to make tags a searchable object. To clarify, Im NOT trying to make the search engine search posts by looking at its tags, but I want tags to show up in the results just like a ...
0
votes
1answer
553 views

Remove default post types on all sites except primary blog. WPMU

I'm trying to come up with a solution that would allow me to remove the default post types (pages, posts, comments, links, etc) from all the multi-site blogs EXECEPT the primary blog. It will remain ...
0
votes
1answer
3k views

How do I paginate a list of categories?

I recently added thumbnails for my categories, which has had the side effect of making the page they are listed on unbearably long. Because of that, I am hoping to paginate the list of categories. ...
0
votes
1answer
617 views

Short messages widget [closed]

i'm looking for a widget that can show short news messages in the sidebar sorted by date (sticky's would be nice too) and manageble in the backend. I don't want to create posts because these messages ...
1
vote
2answers
960 views

get_post_type on post.php

How can I get the post_type while on the post.php page? I'm working on a plugin that lets users create a new post type. Then in the new post type, a meta box will be added with some options. The meta ...
0
votes
2answers
1k views

How do I add a dropdown list of numbers 1 - 1000 as an extra profile field?

I don't want to write out something like this from 1 to 1000: <select name="number_pick" id="number_pick" > <option value="1" <?php selected( '1', get_the_author_meta( ...
26
votes
5answers
48k views

How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?

While looking through the function reference entry for wp_insert_post(), I noticed that there's no parameter in the array it requires which will allow me to set the 'Featured Image' for a post, ...
7
votes
1answer
2k views

How can I upload video, generate thumbnail and convert to different formats?

I haven't used WP in a very, very long time so please bear with me. I'm using v3.3.1 I've used get_children() to display images of a page in a custom template. I then customized a template to turn ...
1
vote
1answer
690 views

How can I add an options page for my class based plugin?

I'm trying to use the new Settings API with a class based plugin to add a settings page. This is the code I have so far: class simple_sample_plugin{ function simple_sample_plugin() { ...
0
votes
1answer
211 views

Wordpress pagination with wp_query_columns

I'm using the code from here to split my loop up in to columns. The columns work. I have 7 posts in the databese and showposts set to 6. I cannot get nextpage link to show? I have a $paged variable in ...
3
votes
3answers
601 views

scheduled event not getting executed

class checkPost{ function __construct() { if ( !wp_next_scheduled('my_task_hook') ) { wp_schedule_event( time(), 'hourly', 'my_task_hook' ); // hourly, daily and twicedaily } ...
1
vote
2answers
211 views

How to redirect a link to a new link?

I am about to change the slug for my page's permalink. Since I dont want to loose the traffic, i would like to redirect the visitors to the new more SEo friendly link. Can I achieve this with the ...
0
votes
1answer
168 views

Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?

I'm aware that there is existing FlashBlock plugins that users can install on their browsers, but I would like a Wordpress approach to be able to: Replace SWF content by a thumbnail / screenshot of ...
1
vote
1answer
58 views

How to prevent a page from being linked in the menu/crossbar

I apologize if the question is confusing. Let me explain: I'm running a modified version of Twentyten and I've been doing the parent/child thing with my pages, which show up on the horizontal menu ...
1
vote
3answers
4k views

Buddypress Registartion template [closed]

How do I create a registration template in Buddypress? I can't seem to find any way to integrate the registration form in a template page. I tried adding this code to my template page, it displays ...
0
votes
1answer
1k views

How can I add buttons to a custom column in the taxonomy table?

I am working on an issue-based publishing system for a friend of mine. So far I have created a custom taxonomy called "Issue"; added several custom fields to the custom taxonomy (like "Issue number", ...
2
votes
1answer
594 views

2 different post->IDs for single page load only in Firefox

I am saving the post->ID in a session array to keep a history of the accessed pages for a specific custom post type. This code was added to that specific custom post type's template, so that the ...
0
votes
1answer
75 views

Leverage WP_Rewrite to pre-validate links / detect invalid links

I'm automatically generating links to (supposed) pages/posts. These links are generated by get_permalink( $post->ID ), so in_theory, should be valid links. Unfortunately, in some situations, where ...
0
votes
2answers
1k views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...
-2
votes
2answers
5k views

Facebook like button not showing up in iframe [closed]

I have tried what seems like every plugin to add the facebook like button to my site, but none of them are displaying on the page. I am trying to use the iframe method to avoid having to create an ...
1
vote
2answers
2k views

How to add super admin to all sites

Is there a way to add super admins to ALL sites without having to add them to each site individually? My group of super admins needs access to all sites.
2
votes
2answers
129 views

A hook that runs only when the theme is previewed

Is there a function or a hook that runs only when a theme is previewed? I'm referring to the preview feature that you get on the Appearance->Themes page. The reason for this is that I want to ...
1
vote
1answer
1k views

Within the database, where is the flag which says that a user has Super Admin rights?

I have an user in a Wordpress Multisite installation and have access to the Mysql database, I would like to give myself super-admin rights to access the wp-admin/network page. Where can I do it on ...
1
vote
1answer
348 views

Display direct children of the current custom taxonomy in taxonomy.php template

Let’s say i have custom taxonomy named “Location” with hierarchial structure like the following : ASIA CHINA INDIA JAPAN Fukuoka Hokkaido Okinawa Tokyo ...
6
votes
2answers
2k views

Remove images (files) that were generated when using add_image_size()

I have added an image size using this: add_image_size('property-featured', 484, 393, true); It's worked very well for the past year and has generated about 1GB of images in that size, but this ...
1
vote
1answer
235 views

PHPSpec and WordPress

I installed PHPSpec and I'm wondering how should I get the WordPress environment up and running in order to run my tests; Essentially, now I can't access anything from the WordPress API as the test ...
0
votes
2answers
498 views

Not redirecting upon front-end post submission

I have been trying this code to submit front-end post: http://pastebin.com/B8LGhsGA It is not redirecting upon clicking the submit button the form works fine but its not redirecting. When the post is ...
0
votes
5answers
1k views

Stop Images Linking to Themselves?

I have images on my website which I do not really want stolen, I have a no right click plugin which will help, and I would like to stop people clicking on the image to display it on it's own in a ...
0
votes
1answer
821 views

Convert attachment ID into url?

I'm using the plugin advanced custom fields to create custom fields to create a relationship between two pages. The code below is looking at the relationship field and grabbing the page title and ...
0
votes
1answer
749 views

What should I write in the post action of this front end post form?

I'm following this tutorial to build a front end form: <?php /** * * New Post Form for Custom Post Types for the Frontend of Your Site * By Jared Williams - http://new2wp.com * * Last ...
0
votes
2answers
391 views

How can i loop through custom post type according to custom meta field?

I have a winery website with the custom post type "wine", each wine has various custom meta fields like "vintage", "pH", "Varietal-Composition" etc... Now, i would like to list all wines where ...
2
votes
2answers
3k views

Adding custom text in items titles from wp_nav_menu()

I need to add something after each title of a specific menu called by wp_nav_menu() I tried add_filter('wp_nav_title', 'testing_stuff'); with function testing_stuff() { $item->title = ...
2
votes
1answer
1k views

Difference between stylesheet_directory and template_directory

What is the differene between stylesheet_directory and template_directory? Is that representing Child theme and Parent theme?
0
votes
1answer
1k views

Converting HTML5 to XHTML

What do I need to ponder if I want to convert Twenty Eleven theme to XHTML? Is it just the matter of replacing the HTML5 for divs?
1
vote
1answer
499 views

how to add class to the ul returned by wp_list_bookmarks

wp_list_bookmarks returns HTML that has a ul with classes xoxo blogroll. I'd like to add another class to that ul, but can't seem to find an elegant way to do so. wp_list_bookmarks does accept an ...
3
votes
2answers
3k views

How should I use register_setting, add_settings_section, & add_settings_field in my plugin's options page?

I'm working on a settings section for my plugin, and after reading over Wordpress's documentation which is in ROGUH DRAFT status, and also the Creating Options Pages - which is also in "transition", ...
2
votes
2answers
2k views

Archives for custom post type based on a “date” meta value

I've got an "Event" custom post type. Each post has a meta field for the actual event date, which cannot be the posts's publish date, as most all the event dates will be in the future. With that, I'm ...
0
votes
3answers
660 views

How to Structure Pages and Subpages

I'm trying to create a church site using WordPress. The following is a small sample of the page structure I'm trying to create: About Staff Statement of Faith Contact Ministries Furnace Prayer ...
0
votes
4answers
3k views

retrieve meta key when checkbox is used

I created a meta box with a value "home" of type checkbox, however I'm having hard times retrieving into the loop, I'm using this code into the loop: <?php if(get_post_meta(get_the_ID(), 'home') ...

15 30 50 per page