1
vote
1answer
348 views

What 'function' will 'update' a post?

I am using a script to import my vbulletin forum posts into wordpress as posts. One quick issue I ran into is there are numerous forum posts with the same title 'please help me'. When I go into the ...
1
vote
1answer
398 views

is_page() conditional not working inside an AJAX function

I have a jQuery ui tabs that load posts via ajax on sidebar. Now in a specific page i want to filter the query post via is_page(); conditional. But in my case its not working. function ...
1
vote
3answers
2k views

Problem creating a table with dbDelta

I'm working on a plugin that was creating a table successfully. However, I decided to test it in a fresh install of Wordpress (on my local server) and now the table is not being created in my ...
3
votes
1answer
193 views

Can someone explain Wordpress caching, and what's the best in my scenario?

I'm creating a website that has two basic user groups: Subscribers and Editors. Bot can create posts via a custom form using wp_insert_post(), but Editors are allowed to mark a post as private, ...
1
vote
1answer
4k views

Connect forms in WP to external database

I want to use Wordpress for an existing site (coded in PHP). It has some forms (for member subscription, user can update their data etc.) which are connected directly to an existing database. I don't ...
1
vote
1answer
2k views

Include content of file into plugin (ob_start();;include;ob_get_clean()) without <<<EOT

I am writing a plugin that requires a large chunk of html. Now the way how it is set up now works. return <<<EOT <html> EOT; But I want to split the file into different php files ...
3
votes
1answer
4k views

How to use WordPress authentication on non-WordPress page?

I have a site based on WordPress. This site has some functions for member only. One of the functions is a external script and I believe anyone can access this without authentication. I can add ...
1
vote
1answer
150 views

Why is 'is_multisite' returning true when it's a single install?

I've installed a single site WP. In one of my plugins, I have the following code: if(is_multisite) { $upload_dir = get_upload_dir(); $_SESSION['root_image_dir'] = ...
-1
votes
3answers
914 views

Google Adwords Conversion plugin [closed]

Is there an available Google Adwords Conversion plugin for wordpress? I search high and low but can't find any.
0
votes
3answers
6k views

How to load post content on index page using ajax when post title in sidebar is clicked

I'm working on a new blog which display in a list, on sidebar, some categories and the posts of them. In the index page, in main content, I list some post titles from other category "New". What I ...
1
vote
2answers
2k views

How to disable monthly archive

Is there a way to disable archives pages, specifically monthly archives?
0
votes
1answer
736 views

Add posts from a category to menu with all posts in it as sub menu

Because there is no category option on pages I desided to add post category to main nav. I added the category and added posts on it but it doesn't dsplays the sub category on menu. what should I do to ...
0
votes
3answers
6k views

Blog has an infinite redirect loop

Why is http://compassionpit.com/blog/ going through an infinite redirect loop? Here's my nginx conf file. The site is run by a nodejs server on port 8000 and Apache serves up the blog (wordpress) and ...
1
vote
1answer
552 views

Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?

For example I have 20 pages on a site. one of them is called bacon another called eggs. on the same site...lets say breakfast.com I have the permalinks set up properly and have used them ...
1
vote
1answer
389 views

Pagination Comments Doesn't Show

what im trying to accomplish is adding a pagination to my function for comments. I think im on the right track with my code but I need some guidance. <?php $comments = ...
2
votes
3answers
2k views

Fast way to add countries as a custom taxonomy term?

Is there a quick way to add a list of countries as terms to a custom taxonomy called "Country"? Is there an existing import file, SQL script ect... I don't want to be there all day manually adding ...
1
vote
1answer
200 views

Review site custom post type structure

I build a review site with Wordpress. I created a custom post type called "Reviews", inside this, theres two taxonomy, one called "Genres" and one called "Types". Inside the Genres, i have a couple of ...
0
votes
1answer
2k views

Add category to custom post type automatically, using category slug

I'm using this excellent function to automatically add a category to my custom post type "Videos" on publish, if there's no category already chosen. This works great: function ...
0
votes
1answer
259 views

featured image metabox MU

I have a MU install, the admin for my main site (site.com) shows the Featured Image Meta Box, but the admin for the subsites (site.com/blog1) the F.I.M.B. is not shown or available in the screen ...
0
votes
1answer
2k views

Update term count using a callback function

With the wp_update_term_count_now, how can I use the update_count_callback to specify my own count. I need to include counts from another database that the current database category is able to ...
1
vote
0answers
189 views

Setting Required Fields When Writing a Post [duplicate]

Possible Duplicate: don't publish custom post type post if a meta data field isn't valid I originally asked this Q over at theme hybrid, Justin suggested I ask in here, he suggested ...
1
vote
0answers
279 views

Add Older Posts at bottom of List Category Post page [closed]

I've installed this plugin and have it working, I'm using the shortcode but cannot figure out how to have a link for "Older Posts" or More posts" or "Archive" appear at the bottom of each page of ...
0
votes
1answer
288 views

Get current taxonomy and display query accordingly

Okay i'm having a bit of a catogorisation/taxonomy/filtering problem here and am at loss on how to solve this. I hope someone could help me on the way a bit. Say I've got a blog about food, with a ...
0
votes
1answer
326 views

Find out how many times the user has logged in

I'd like to determine how many times a user has logged in. Does WordPress retain that information or will I have to add a db entry every time they log-in? if(is_user_logged_in() && ...
0
votes
2answers
559 views

automatically create taxonomy with same name as post title

I have a custom post type called "Country Story". The title of which will be the name of the country. I want Wordpress to automatically create a new taxonomy called "country" of the same name, i.e. a ...
13
votes
1answer
17k views

How to create custom URL routes?

I have a very peculiar requirement, hopefully I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, ...
0
votes
1answer
310 views

rename 'page' URL fragment in pretty permalinks

i would like my WP URLs to be fully in my language so instead of: site.com/page/2/ i would like to have: site.com/pagina/2/ (in spanish) how can i accomplish this? i tried to do simple str_replace ...
0
votes
2answers
793 views

How to determine if a user has not changed default generated password

I'm looking to advise a user that they should change their password from the default generated one that was emailed to them. Is there a function or hook that will tell me if the user is running the ...
1
vote
2answers
4k views

Custom loops, sticky posts, and pagination nightmare

I've tried everything. I've looked at every. single. question. here, on StackOverflow, the WP help forum, googled 10 pages deep and literally tried EVERY combination of code I could find, for the ...
2
votes
2answers
1k views

add_image_size for post type

I currently have this in my functions file, which works as expected: // Enable Post Thumbnails add_theme_support('post-thumbnails'); // Custom Thumbnail Sizes add_image_size( 'square-small-thumb', ...
0
votes
2answers
417 views

How to deal with apostrophes

I'm doing an INSERT into a wordpress table and anything with an apostrophe is coming out It\'s true I tried using htmlspecialchars but I'm still getting the backslash. Is there any way to write ...
0
votes
2answers
816 views

search only pages if on page

i have a site made up of pages and posts. there are only a few pages and a ton of posts. how can i set the search box in my sidebars to search pages only if on a page, or search posts only if on my ...
0
votes
1answer
346 views

remove the 'page' URL parameter in previous/next posts link

I want to remove the "page" bit from the URL when I use the previous_posts_link and next_posts_link. Right now, it looks like: http://mywebsite.com/page/2 I want it to look like this: ...
5
votes
2answers
122 views

how is the theme unit test data licensed?

Can I use the theme uint test data in a demonstration site for a commercial theme? Or am I only allowed to use it for internal development? http://codex.wordpress.org/Theme_Unit_Test
3
votes
2answers
1k views

Use wp_nav_menu() to display a Menu from another site in a Network install?

So I'm basically upgrading an older site and I need to make it multisite as well for some blogs and such. I'd like to have the main site Menu(created from the admin) available on the other sites in ...
6
votes
2answers
253 views

Creating Unique Post URLs for A/B Testing… Is this even possible?

I want to create a WordPress plugin that allows me to do A/B testing for WordPress standard posts, but I can't use the Shrimptest plugin because I need a spin: Since I'm ultimately testing ...
1
vote
0answers
276 views

Display image gallery in lightbox via single link [closed]

I would like to do the following: On a single page, show a link saying "view images". When clicked, this will bring up a lightbox, within which will be an image gallery that a user can though. I ...
0
votes
1answer
353 views

Can't place two custom post types into the Wordpress search query?

I placed the following code into my functions.php file: function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('topic', 'reply')); }; return ...
0
votes
2answers
687 views

Best Practice for Displaying Categorized Posts on Front Page

I am building a custom wordpress theme from a clients mockup. On the homepage there are 2 sliders, and 4-5 areas for recent posts of different types. I would like to have all the content be editable ...
2
votes
1answer
604 views

How to redirect a Custom Google Search to a wordpress page/template?

I'm using the Google Custom Search plugin by edwinkwan (the first that appears in the wordpress plugin repository). I added the search box: <?php display_search_box(DISPLAY_RESULTS_CUSTOM); ?> ...
4
votes
2answers
2k views

Use [embed] filter in template files

WordPress autmatically embeds a youtube video's if I use: [embed] http://www.youtube.com/watch?v=Xog1T5dUxcw [/embed ] This is great, but it doesn't work if I use it in an template file. I have a ...
1
vote
1answer
948 views

How to modify the action attribute of the wp-login.php?action=register form?

I'm trying to create a reference registration system in Wordpress. The idea is that the user will click a link which will contain wp-login.php?action=register&ref=12345 I'm hooking into the ...
0
votes
2answers
3k views

Get taxonomy slug from url

Sorry I'm new to taxonomies & trying to learn quickly. I've set up sectors and assigned a post to it. If I go to the post, I can see the URL has www.mydomain.com/sectors/auto/ How can I get auto ...
10
votes
6answers
3k views

How to restrict attachment download to a specific user?

I have a very specific use case where the site built for a lawyer and each of his clients can login to their own 'specific page/portal' (custom post type) without the ability to access wp-admin etc. ...
0
votes
1answer
684 views

Plugins in mu-plugins folder are not loaded

I'm trying to load plugins automatically by putting the plugins into mu-plugins folder. But if the plugin is put in a folder, it isn't loaded. I tried some popular plugins such as W3 Total Cache, ...
0
votes
2answers
550 views

wordpress header leaks into body in a specific template

very strange problem, that happens only in one specific template. part of the part "leaks" into the tag - and I can't figure out why. the "header.php" code: <!DOCTYPE html> <html ...
2
votes
5answers
1k views

how to only have one custom post type post?

Is it possible to limit a CPT to just one? What I'd like to accomplish is creating a CPT called "Home". It will manage any and all elements on the home page. I want to program it so when the user ...
-2
votes
1answer
104 views

How to display different styles on index posts in wordpress pages? [closed]

I want to add a new div on wordpress index.php thumbnails. When hovered a new div should cover the thumbnail. The problem is that whatever I add to index.php it will affect all posts, so if a user ...
-2
votes
1answer
406 views

How to make that all permalinks would open in a new window?

Where should I amend to make this happen? I should add somewhere target="blank_" Regards,
0
votes
1answer
63 views

which template does wp_ tag_ cloud point to?

This is very embarassing. If I add wp_tag_cloud to my navigation in list form, it shows as I need it (like a sub nav). If you then click a tag what template is then used? I've tried adding ...

15 30 50 per page