0
votes
1answer
682 views

Featured image in admin on custom post type

I followed this tutorial to getting featured images to show in the admin menu on posts. I wanted to be able to see what article had a featured image and what it looked like without having to actually ...
1
vote
1answer
518 views

When is it too late to call the action wp_enqueue_scripts?

I'm creating a plugin that always enqueues a script in the footer. I also have a function that if called would enqueue an additional script that depends on the other one. Here is the basic format of ...
1
vote
1answer
4k views

Filter custom post type using multiple taxonomy dropdowns

I'm trying to create two dropdown boxes on a custom post type page called Activities. One taxonomy category is for Activities Grade Level and the other for Activities Type. With what I have now, if ...
2
votes
1answer
6k views

Which database table does “Featured images” save under?

I'm having an issue while upgrading WP from 3.2.1 to 3.5.2, where one section's Featured images have all been deleted. When I visit that section's edit post pages, the featured image thumbnails that ...
0
votes
1answer
553 views

Internet Explorer ignore my css

I am creating my personal blog, but Internet explorer are ** me. About 5 hours I am trying to figure out what I am doing wrong, well what is my problem ? Well, I created breadcrumb for my website, ...
1
vote
0answers
276 views

Featured images disappear after DB export/import?

I'm upgrading my blog right now from 3.2.1 to 3.5.2. However, for one section the featured images have seem to disappeared. The database is identical since I just did a dump/restore a few minutes ago. ...
0
votes
1answer
186 views

single post navigation order (NOT chronological)

in my main loop i show only posts of the 'artworks' post type, orderby=rand. when i view a single artwork and use the next / prev nav, it disregards the main query and goes by chronological order - ...
0
votes
2answers
183 views

Adding capabilities to default roles

I created a custom post type and gave it the following capabilities: add_action( 'init', 'create_team_page_post_type' ); function create_team_page_post_type() { $args = array( 'labels' => ...
0
votes
1answer
146 views

Pretty Permalinks cause site to crash on main domain

Here is the problem I am getting in a nutshell. Pretty Permalink + Main Domain = Site goes down Immediately. MySQL gets hammered. Pretty Permalink + Sub-Domain = Site is up No Permalink (default ...
0
votes
1answer
672 views

Permalinks not working

I know, asked and answered a million times. For the life of me I can't find my error. Trying to set up Permalinks to use post name, /%postname%/ Trying to visit anywhere else other than the homepage ...
0
votes
1answer
379 views

Has wp_get_attachment_image_src changed from 3.2.1 to 3.5.2?

I just upgraded my app from 3.2.1 to 3.5.2 and now I'm having an issue where my image srcs are blank in one of my pages. The databases are identical (since I just did a mysql dump/restore a few ...
0
votes
2answers
524 views

Missing Title on custom post types

I missed the title on custom post types on new or edit page; I have added some custom fields, but Title disappeared. register_post_type( 'videos', array( 'labels' => $labels, 'public' ...
0
votes
2answers
254 views

Walker for menus

I want to modify all of my <li>'s classes and ids, but the function wp_nav_menu() does not let me do so, so I think I need to use a walker. I am pretty new in OO, so using an object is not ...
0
votes
1answer
404 views

How to add a byline to all the pages?

I am signing up for google authorship, and they require me to add a byline to my site. But I have almost 500 pages of content on the site and can't do it manually. Would anyone be able to suggest how ...
1
vote
1answer
191 views

Wordpress Central User Database

I run multiple Wordpress sites, I would like to centralize the users table so that users can access all the sites with a single username. Why do this? I run video communities What do I need? User X ...
3
votes
2answers
635 views

Search multiple meta keys at once

How would I modify the following SQL Query to allow me to search multiple meta keys at once? e.g. user_business AND user_about In the end I'll be searching about 40 - 50 different meta keys; or if ...
2
votes
2answers
123 views

WordPress isn't setting my <title> tag [closed]

I am on this screen of WordPress: And when I press save, the meta description tag for my home page gets set, but my <title> tag does not. Would anyone know why this happens? Also, for some ...
1
vote
1answer
2k views

How to order get_term_children output by alphabetic order

The following creates drop-down lists of my custom taxonomy children, but the order of the output seems to by creation date, not by alphabetical name. I tried adding orderby to the array with no ...
0
votes
0answers
61 views

How to update all permalinks in site

So my client has changed all the titles of pages and posts... but the permalinks have not changed from the original title. I have tried changing the permalink configuration, but when I go back to the ...
0
votes
1answer
275 views

how to associate several authors to a custom post type

I have a "product" post type, to which i would like to associate several users according to their (custom) roles ( "designer", "producer"). They will be able to create (but not publish), edit and ...
0
votes
1answer
517 views

WP_User_Query not searching

I currently have the following code, and a user named "Clark Farm" in the user_business table. The code below returns nothing. If I remove the search term then all of the users are listed. I'm trying ...
0
votes
0answers
349 views

Str_replace using shortcode with multiple changes

I am using a feed importer plugin which gives the option to use a short code in case I need to change data (in this case data for a custom field) on import, using for example: ...
0
votes
2answers
62 views

meta fields for the whole wordpress site

Is there a simple way to store additional information related to the whole website in a meta field? For users, comments or posts, I learned how to use meta fields to store their additional related ...
0
votes
2answers
512 views

Unable to add widgets to sidebars in custom theme

I'm trying to add a footer area to wordpress so I can drop widgets and things there. I see my footer area in the admin section, but if I add a text (or any other) widget and then save it, nothing ...
-1
votes
1answer
91 views

Is there a WordPress theme for twittstrap?

I would like to know if there is a WordPress theme that uses twittstrap (a derivative from Twitter Bootstrap)?
0
votes
1answer
64 views

has_excerpt yields true but no post_excerpt when retrieved

echo has_excerpt($att); //Results in True echo $att->post_excerpt; // results in empty. echo $att; // results "782" which is the ID of the attached image. If I use get_post_meta( $att , ...
11
votes
1answer
5k views

get a list of all registered actions

I'm trying to debug a plugin which I didn't develop and I want to list all the registered actions. I've read this SO thread: WordPress: How do I get all the registered functions for 'the_content' ...
0
votes
2answers
33 views

Post thumbnail dependant on category

I have two categories (our work and news) and only one single.php If looking at a single post in the news category then I want to show the thumbnail too so have inserted: <?php if ( ...
1
vote
4answers
284 views

How to run multiple websites from single WordPress setup

I want to create a website like visahq.com in WordPress, actually visahq.com has multiple websites like visahq.in for India, visahq.ru(will be shown in Russian) for Russia etc. and each TLD has ...
0
votes
1answer
25 views

Wordpress get the latest plugin installed details

I dont know which plugin is giving the error "bp_setup_current_user was called incorrectly" calling before the buddypress installed. How can I get the details of latest plugin installed in the ...
0
votes
0answers
69 views

Custom Rewrite for Profiles

I'm currently trying to modify my rewrites to allow for an additional URL segment e.g. http://example.com/vendors/username/ by default WP allows for additional numeric segments but everything else ...
0
votes
1answer
1k views

comments_template not working correcly in custom template files

In a template file that I am using as page, I want to allow only 2 users to post comments and allow to all other users to only see these comments( not allow them add comments). my template file is: ...
0
votes
2answers
44 views

Have lots of meta for posts, is it better to get at all at once or each individually

I have a directory website and am doing a bit of a redesign/restructure. I have quite a few meta fields for each entry, i.e. address, city, country, website, where to buy their products, social links, ...
1
vote
1answer
3k views

Is_search not working on search results page

I have an extra submenu with this code in the sidebar: if(is_404() || is_search()) : echo 'should be empty'; else : if($post->post_parent == '68') $children = ...
0
votes
1answer
256 views

User accounts for saving form data?

I have a handful of forms on my WordPress site that people fill out, sometimes repeatedly. They can be fairly long, time-consuming forms, so I'm hoping to find a solution where a user's form data can ...
0
votes
2answers
70 views

Making a site URL

I've used WordPress before but only through the website. This is the first time I've actually installed WP and I'm loving all of the customization options that are available to me now. I'm a bit ...
0
votes
1answer
209 views

Get comments only for certain specific users in template file

To return comments for a specific user, I use the code below: $arg = array('user_id' => $userID); $coms= get_comments( $arg ); How can I modify the arguments of this function so that I get ...
0
votes
3answers
1k views

How to redirect non-logged in users to login with post_password_required()

I have created a membership site which is working how I would like in that non-members cannot view private pages. However, I want that when someone who has not logged in, clicks on a link that links ...
0
votes
1answer
585 views

Can't upload files

I've been developing a wordpress website (with a custom theme) for a month. Today I wanted to upload an image to a page and I got a message saying there was an error and I should try again later. I ...
0
votes
1answer
40 views

How to output built-in widgets with number in range as class?

I'd like to make my theme mobile friendly by turning the widget-containers into touchable buttons, having their contents flying out when hovering. Therefor, I will have to absolutely position the ...
0
votes
0answers
706 views

wp_insert_user email confirmation

I'm creating a new user once they leave a comment, i am doing this with wp_insert_user function create_comment_user($comment_ID){ global $wpdb; $comment = get_comment($comment_ID, ARRAY_A); ...
0
votes
1answer
158 views

Implementing HTML/CSS menu in WordPress theme

I have an HTML/CSS template having a horizontal menu. I need to convert the template into a WordPress theme. I am stuck with the menu. I have used the wp_nav_menu function in my header.php file and ...
0
votes
2answers
749 views

order by meta_key [duplicate]

i have a little problem: I can not order my events as i wish. I would like to order my upcoming events in ascending order... I am using the following: new WP_Query( array( 'author' ...
0
votes
0answers
24 views

CSV import stopped working when I upgraded to WP 3.5.2

I used to import Greek text in posts using various plug-ins such as CSV improter. All these stopped working once I upgraded WP to 3.5.2 Any known issues? Thanks.
1
vote
2answers
819 views

Preventing 404 error on empty date archive

On a date archive page when no posts exist (for that date) WordPress throws across to the 404 page. Is there a way to make WordPress continue to use the original archive instead of the 404. That way ...
0
votes
0answers
141 views

Custom plugin appears outside of the sidebar container

I created a custom plugin that activates a custom contact form widget, and when I add it to my sidebar, it appears outside of the sidebar container. Here's the code for calling the sidebar: ...
0
votes
1answer
2k views

wp_mail strips out the link url from the anchor tag in mail content

When the email content contains a link with url like: mobileappname://accesstoken#w34rdgtsrt5v6m, <a href="mobileappname://accesstoken#w34rdgtsrt5v6m">Click</a> wp_mail function removing ...
0
votes
2answers
236 views

Get post title of faulty link on 404 error page

My users can link to things that don't exist on the page. That's something I chose because it is the best option for my concept. Anyway, what I want to do is this... Let's say I clicked on a link that ...
1
vote
1answer
2k views

is_tax() function not working as expected

I'm facing an issue with the is_tax() function. I'm a class method that fetches a specific custom post types. These custom post types have taxonomy related custom fields (among other custom fields). ...
0
votes
1answer
55 views

Assign classes to Custom fields

I have a post with 4 custom fields, and I am using the_meta( ) to display these. I want to add an image to the list items, but a different image for each item eg. key "Client" will have a small image ...

15 30 50 per page