0
votes
1answer
1k views

How to Run a jQuery Script after a Javascript Script has Finished in WordPress

I've got javascript (a) and jQuery script (b). I need (b) to run after (a) has finished running. I need them to run sequentially. How do I do that? In wp_enqueue_script, I've made (b) dependent on ...
2
votes
1answer
791 views

Set a category for a page

My current theme has a portfolio section where you can have an array items based on what category they are in. My problem is that I have several pages that I want to be in the portfolio section but ...
1
vote
2answers
1k views

How to add pagination with page numbers rather than next/previous links?

Does WordPress have any built-in pagination functions to show the page numbers instead of previous and next page links? If not, how can I add that? Thanks
1
vote
1answer
518 views

MySQL Query To Select Post By Postmeta

I have two custom post types, type1 and type2. Type2 posts have a postmeta called postID that is the ID number of a post in type1. When showing type1 in single.php I want a mysql query that selects ...
0
votes
1answer
189 views

Loop Offset for tag based “Related Posts”

As I'm using the jQuery Tool "Scrollable" for my Related Posts section (see example here), I was wondering how I can implement an offset so that in the first loop it'll show the first 4 posts, then ...
0
votes
1answer
117 views

Most Effective Method? Exclude Category and Number of Posts Per Page

I want to create a loop that excludes a category and only displays a certain number of posts per page. I have tried both have_posts and query_posts to do this, but I'm a bit stuck on the most ...
9
votes
1answer
3k views

Custom bulk_action

I would like to add a custom bulk action to a custom post type. I came across the filter bulk_actions-screenid, which according to its documentation, would do exactly as I wish. However, after about ...
0
votes
2answers
453 views

problem loading stylesheets to wp_head dynamically

I'm trying to create a wrapper shortcut function to register and load stylesheets in the header. currently, the function loads this css file src: http://my.test/wp-content/theme/css/.css I, ...
0
votes
1answer
1k views

TinyMCE in a div / textarea on frontend?

I have a post on my frontpage and I want to add the TinyMCE editor to it and could not make it work. I've tried these guides without any luck ...
1
vote
1answer
335 views

Application form plugin with payment gateway

I'm working on a site for a small business academy. We're trying to create an application for potential students to fill out to apply for the school. The form needs to be able to have multiple ...
1
vote
3answers
74 views

How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]

I just started working at a company and they have a website that was partially completed by another designer and have hired me to complete and make changes to it. It seems that most of the website was ...
0
votes
1answer
78 views

Creating fields in the database

I am newbie to wordpress plugin and this is my first plugin which I am doing now. I want that when the plugin will be activate it will make some predefined fields in the database and also the same ...
0
votes
1answer
138 views

Search URL redirect problem

I'm having a strange problem with my search results page when i search i get this in the URL http://f.cl.ly/items/2Z1c1b2G1n0B3r3W063B/Screen%20Shot%202011-09-29%20at%201.21.19%20PM.png "see the X ...
0
votes
1answer
210 views

Capcha not getting displayed

I am using the theme Feed Engine for a question and answers site. I am having a problem that it is not displaying the captha(see here). I would be very thankful if someone could help me out. Thanks in ...
4
votes
1answer
958 views

How can I filter posts by post_parent in the admin?

I have followed this tutorial and this one to add a custom column to a custom post type edit screen, showing the post parent of each post. My question: How can I make the post parent clickable just ...
1
vote
1answer
192 views

Combining action and filter?

I tried to set up different video oembed size for content and sidebar. I can set up video size with embed_defaults filter. But this filter works for the whole site and I need to have smaller video ...
0
votes
1answer
161 views

Should I go for Multisite or separate WP Installation?

I'm developing an article site where an user can register and post the articles and the URL would be like http://domain.com/articles/category-name/article-name The site will also be having a blog ...
0
votes
1answer
334 views

Taxonomy terms with the same name are updated between separate custom post types

I have 3 custom post types, and they each have a taxonomy labelled location, with some term names shared between them. The problem is, if I update a term name in any of the 3 custom post types, it ...
2
votes
1answer
2k views

Custom post type's get_permalink returns wrong url

Currently my permalink setting is /paper/%postname%/. I am developing a plugin, so the following is done during the activation. I am programatically adding a new custom-post-type called 'meta', like ...
0
votes
1answer
373 views

Google 404 Errors

It seems Google Tries to crawl pages I never created and gets a 404 error, but it thinks or maybe somewhere in my code, google thinks there is a second page. For example, I have this page ...
1
vote
1answer
255 views

How is a user's primary blog determined?

The wp_usermeta database table has a primary_blog meta field for each user. Where is the value for that field set in the Admin Panel, and how can I override the default value?
0
votes
1answer
504 views

How to use custom fields to replace top-level parent title with an image using wp_list_pages?

I'd like to integrate get_post_meta into the wp_list_pages mix so that any top-level parent list items get replaced with images ONLY when a key exists in the post's custom fields section. I can't do ...
1
vote
1answer
102 views

Featured Image Thumbnail Creation

What function or script creates the hard-cropped feature image when a post is saved? Regardless if I stipulate a size when saving the featured image in the media library (like the medium size), a new ...
0
votes
1answer
113 views

Toolbox theme using printif statement - help needed understanding code block

I want to make edits to the following so that I can display the author and date but without those being links to searches 'by date' and 'by author'. The site I'm building will only have one author and ...
0
votes
1answer
255 views

WPMU function get_blog_details, last_updated/registered and formatting time and date string

Within my multisite installation I can get the registered and last updated time strings for a sub blog through get_blog_details and the blog ID: echo get_blog_details($blog_ID)->registered Ok, ...
2
votes
1answer
2k views

“Preview Changes” button doesn't show changes for previously published posts/pages

When go in and make some changes to an article and click the "Preview Changes" button (without having first saved anything), another window/tab opens, but the article shown is the last saved version. ...
0
votes
1answer
65 views

Query for specific taxonomy that executes a particular loop depending on volume of posts?

Is it possible to create a special wp query that looks to see how many posts exist in a specific taxonomy, or taxonomy term, and executes a particular loop depending on the volume of posts? My idea ...
0
votes
1answer
445 views

No three-columns template in TwentyEleven?

I am just jumping into the TwentyEleven bandwagon, and I am a little puzzled by the apparent absence of a 3-columns template file... It is advertised in the theme description though. Am I missing ...
1
vote
1answer
575 views

wp_set_object terms won't remove all terms [closed]

I am trying to figure out why wp_set_object terms will update the terms in a given taxonomy but when I set the $terms param to NULL it keeps one of the terms - the one with the lowest ID. I've ...
0
votes
1answer
688 views

Wordpress plug-in for dynamic download link?

I am using Wordpress and I like to serve a page with a link to download. That link points to a new file EACH DAY. Is there a plugin that can do this? Store a list of filename per day Rotate each day ...
1
vote
2answers
1k views

Elegant way to include only published posts with get_objects_in_term()?

The obvious way is to iterate through the resulting array of IDs, get_post for each and test against post_status == 'publish'. But I wonder whether this could cause memory issues since get_post will ...
1
vote
1answer
372 views

Ignoring a category in WP_Query still shows the links in next_post_link()?

So I have a WP_Query like so: $homepage = new WP_Query( 'posts_per_page=1&cat=-5' ); and in my while loop, I have a call to next_post_link() and previous_post_link(), which are both showing ...
0
votes
2answers
3k views

Simple way to search custom-post types only

I'm just trying to find a way to narrow my current search bar so that it only searches within my 'events' custom post-type. I do not want the search to index any other post type, only 'events'. ...
0
votes
1answer
329 views

Function to add DIV Class?

I'm building a WordPress options panel. In my options panel I added the following, this creates a Yes/No dropdown menu asking whether or not the user wants to display breacrumbs - I want to be able ...
1
vote
1answer
4k views

Wordpress query_posts and orderby page order

I have a page that lists all sub pages of the current page. Each page has been assigned an order number in the wordpress editor but they aren't ordering for some reason. I'm set up like this: ...
3
votes
1answer
834 views

How to link to the image editor's Edit Image function?

How do I link to the image editor's Edit Image function from the front end? I know that I can open the lightbox with a simple link, such as <a ...
1
vote
1answer
292 views

Yoast SEO creates sitemaps with a dash '-' but I can't get Bing to accept them [closed]

I've submitted my sitemaps to Google, Ask, and yahoo with no problems but when I try to submit to Bing on 3 different computers PC and Macs Bing rejects without any warning all sitemaps with a dash. ...
0
votes
1answer
399 views

Categories show 404 error on multisite installation

I have a wp multisite installation with multiple blogs that are totally separated websites. I use a plugin for domain mapping. Right now I am configuring everything and I wanted to remove the /blog ...
0
votes
1answer
48 views

Photo comment plugin [closed]

I'm searching for a plugin that is (for all logged-in persons of a group) showing one picture of a member/gallery and allow them to leave a short comment on this. Users shouldn't see comments posted ...
3
votes
1answer
1k views

Upload multiple images via theme options

Is there a simple script out there that would allow multiple images to be uploaded via my theme options page (Which is based on this script - ...
0
votes
1answer
519 views

Flushing rewrite rules

I'm using this function to add a custom end point to the WordPress urls add_rewrite_endpoint('print', EP_ALL); When the plug-in gets deactivated, I run this function flush_rewrite_rules(); This ...
0
votes
1answer
80 views

Creating links to a page displaying posts from a particular category

Ok so at the moment I have a page which displays a list of categories within my Taxonomy (event-themes), here's the code: <div id="themeSearch"> <h1 class="mainSectionHeader">By ...
0
votes
3answers
138 views

First Custom Post Custom Fields Empty After New Custom Post

I am working on a theme which contains a custom post type with custom fields. Everything is working perfectly except the when a new custom post is added, the custom fields for the first custom post ...
0
votes
2answers
177 views

Using WP functions such as the_title() in an included php file

I'm including a php file in single.php, in the loop. Is it possible to use WP variables such as the_title(), the_date(), etc in the included php file?
1
vote
1answer
264 views

Regex to Remove File Extension

I am using the Redirection plugin and I would like to use it to redirect my old static html pages to the new Wordpress pages. So basically anything that looks like http://www.example.com/page.html ...
2
votes
1answer
111 views

Wordpress and Custom PHP single SignOn

I have a Wordpress installation and some php pages (not related to Wordpress). I want to use the same login between Wordpress and My Php pages. When I login from my php, and go to wordpress, it ...
1
vote
1answer
331 views

Remove ShareDaddy meta box from Pages only

I'm trying to take away the option to have sharing options on 'pages' (but leave on posts). So I have a function to make sure the sharing option is always no on pages function ...
-1
votes
1answer
318 views

Alternative loop syntax error [closed]

I'm trying to minimize my code and have put together this little snippet, it doesn't seem to work however. What am I missing? query_posts( 'year=2011' ); if ( have_posts() ); while ( have_posts() ); ...
2
votes
1answer
594 views

Where is the reset password key stored/generated?

Where is the reset password key stored in the wordpress DB? Is this the same as the user_activation_key? WP version 3.2.1
1
vote
1answer
2k views

Why is the reset password key missing in the reset password email?

Wordpress 3.2.1 - The reset password URL in the email generated by http://mysite.com/wp-login.php?action=lostpassword does not contain a valid key and so users are unable to reset their password. We ...

15 30 50 per page