0
votes
2answers
2k views

How to add php within jquery

I want to add php code within jquery. I know that the file then cannot be saved as a js file but must be saved as a php file to execute the php code. If we save it as a php file then it can also not ...
0
votes
2answers
4k views

Why I am having error Call to undefined function get_header()?

I am using twenty eleven for my theme and I create a PHP page under it named results.php in the results.php here's my code: <?php get_header(); ?> <?php get_footer(); ?> From my ...
0
votes
3answers
150 views

How to add a custom font in a theme

I want to add a custom font into my theme. Please let me know if this is just as simple as uploading the font to a new folder named "fonts" and then changing the css and renaming the font-family ...
2
votes
2answers
310 views

Using Heroku, need to have non-gravatar avatars, but not stored locally

So, I am new to PHP, so I'm hoping to do this with a plugin, if possible. We are hosting on Heroku, this means uploading a local image to /uploads isn't going to work for this. We need to be able to ...
1
vote
2answers
772 views

Replace default avatar

I've searched google quite a bit and every site has the same filter but it doesn't seem to be working for me. Not sure if it's my setup or just old code. I'm trying this: add_filter( ...
0
votes
1answer
70 views

How would you accomplish the following advanced settings page?

Currently I'm developing a new theme for my business. This theme will have a header section with a drop down menu, a slideshow on the background and three featured images with a title, a description ...
0
votes
1answer
421 views

Collapse subcategories in post edit screen

Is there a plugin to collapse/expande subcategories in post edit screen? In other words I'm looking for analog of CMS Tree Page View plugin, but for categories.
-1
votes
1answer
609 views

Applying if (get_post_meta) to new shortcode

It's my first time here so here goes :) I've created a custom image field which allows me to upload new images, or have images added via a form from the frontend. I want these to display. I'm ...
-2
votes
3answers
85 views

Why is jQuery not working properly? [closed]

I've enqueue'd jQuery from Google and it's displaying in the source code but no matter where I put my scripts they don't seem to work. Here is the site in question - http://www.deanelliott.me/handh/ ...
-2
votes
1answer
126 views

Shopping plugin with user groups [closed]

We need to implement different user groups on our new WP-site so every group has it's own price for every product. For example: "retail customers" and "wholesale customers". Is there an appropriate ...
3
votes
1answer
2k views

How to use wildcards in $wpdb queries using $wpdb->get_results & $wpdb->prepare?

I am attempting to make a custom search for BuddyPress groups. Here is my method: public function search_groups($string){ global $wpdb; $results = $wpdb->get_results($wpdb->prepare( ...
0
votes
1answer
740 views

using wp_redirect to redirect to a permalink

I'm using wp_redirect to change the URL of my 404 page: function show_404($message = 'page not found'){ wp_redirect(home_url() . '/error/404?m=' . urlencode($message)); exit(); } I have ...
0
votes
1answer
2k views

Multisite missing tmp folder error while uploading

I have a multisite setup on a server that requires me to upload to a stage server then send a "publishnow.txt" file over to send everything to the production server. This is a state agency hence the ...
1
vote
1answer
332 views

Return Page/Post ID's of Child WP_Nav_Menu items

Is it possible to return the Page ID of menu items? I specifically looking to get the IDs that appear in a rollover submenu.
0
votes
1answer
613 views

Possible to add “Even/Odd Classes” to image attachments via wp_get_attachment_image?

Im looking for a way to add an alternating even/odd class directly to each image attachment when its outputted via my function below: <?php function nongallery_img_slide( $post_id = null ) { ...
0
votes
2answers
2k views

Beginner Resources for Roots Theme Framework

I'm building a WordPress theme, using Roots as a starter theme. Are there any tutorials telling me how to build a theme off of Roots? I've worked with starter themes before, but this one is a whole ...
10
votes
4answers
4k views

Display all posts starting with given letter?

I'm trying to build Wordpress based dictionary, basically it will have 26 pages (one for each letter): A B C ... X Y Z And every page will display all posts starting with given letter, so after ...
0
votes
1answer
214 views

Commenting out in HTML editor breaks template

There is a certain section of HTML that I need to comment out within the HTML editor in Wordpress. But when I do so, it breaks the HTML. After looking at the source code, I noticed that it converts ...
1
vote
3answers
2k views

Overriding wp_get_archives() apply_filters()

I have Googled for a while and I am not sure how is the best way to do this. In wp-includes/general-template.php I am looking at the function wp_get_archives() which has this line of code in: $where ...
0
votes
1answer
879 views

Change post title during post saving process

My theme and Qtranslate plugin have a conflict and cause many issues on my website's post titles. I cannot trace what causes the issue and I thought that I could handle the title saving myself ...
0
votes
2answers
2k views

How to get the user description with get_users?

I'm using this piece of code to list users and their information. The problem I'm having is that the description isn't showing. Obviously it's because the description lays under "user_meta" and not ...
7
votes
3answers
52k views

How to Display Product specific to a category with WooCommerce Plugin? [closed]

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
1
vote
1answer
145 views

Jetpack Comments with fall-back

I'm developing a theme based off of bones - I went ahead and edited the comments.php file - the comments form is hardcoded - I assumed this was the right way to do things so I carried on and ...
0
votes
1answer
81 views

Pagination on a page

I've got a page of which I'm displaying a load of custom post type posts, much like blog displays a load of posts. I'm using WP_Query and have my pagination links outputting correctly, however when I ...
1
vote
1answer
852 views

Removing Super Cache Plugin

I want to remove super cache off my site I do every thing in this article http://wordpress.org/extend/plugins/wp-super-cache/other_notes/ The only problem I am having is the htaccess file. If I ...
0
votes
2answers
1k views

Rich Snippets for Wordpress

Rich Snippets look like a good tool for the webmaster's toolbox. Do you know of any way of integrating Rich Snippets into Wordpress?
0
votes
2answers
691 views

Website loading slowly - Advanced Custom Fields images

I'm currently using get_field with Advanced Custom Fields plugin (see here) to get a single image for search results. The end result is that these pages are loading slow, as I believe this is due to ...
1
vote
1answer
130 views

Add share links to all blog posts on homepage

I need to figure out a way to add share links to each blog post on the homepage. This way users can share specific posts without actually going into the post. Is there a way to do this easily through ...
1
vote
1answer
211 views

How to find when qtranslate plugin's language changes? [closed]

I used qtranslate for make my website multilingual, In fact this plugin just make an option for my content to has another translate, but how can i use it in my code? for example: if ( $language == ...
5
votes
3answers
796 views

Allow all file types for upload

I'm using Wordpress 3.4.2 for a private blog, i.e. one on which only I can post. Now, Wordpress prevents me from uploading certain file types (like C# source files). As far as I understand it, there's ...
0
votes
1answer
123 views

Delete a specific item menu when I deactivate my plugin (resolved)

When I activate my plugin (register_activation_hook), I add a new specific page and a corresponding item menu in the custom menu. No problem here. When I deactivate my plugin ...
2
votes
1answer
182 views

Is it wise to delete post revisions and autosaves from database?

I'm just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space and apparently have no use after the post has ...
0
votes
1answer
36 views

Page for custom taxonomy

I'm a newbie in WordPress and I've just created a new custom-taxonomy called categories under a custom post type called arts. Is there a way I can create a custom page to display the 'categories's ...
2
votes
1answer
278 views

meta_value_num sort glitch

i have a custom query, and I have a meta key that contains a sequence number: 1.1, 1.2, 2.1, 2.2... 11.1, etc the problem occurs when the numerical sequence gets in to double digits, ie. 5.11, 5.12, ...
2
votes
3answers
2k views

Opinions whether to go multisite VS 3 separate WP installation

I've been reading a lot of questions here regarding about multiple blogs/sites in one Wordpress installation and I've added some of them to my favorites. But I still have the urge/nerve to post this ...
0
votes
1answer
79 views

How do I fix my static page

I have tried a few option with static pages. First i created a template called homepage.php and had it designed a certain way, and also on that template were the post. Then i created another template ...
2
votes
3answers
297 views

Check if any users are logged in before running update

Before I update a Wordpress install (including the theme and various plugins) I wanted to ensure no one is logged in and editing the site. Is there a way to do this? Thanks!
1
vote
2answers
591 views

get_the_excerpt() not returning anything when post has no excerpt

When trying to call get_the_excerpt() the page does not return anything on posts that have no excerpt. I thought WordPress usually 'fake' it and create one using the first x characters from ...
1
vote
3answers
2k views

How to export bbPress (forums, topics, replies) and all users?

I've searched a little and I could not find a straight working answer. I want to export all users and their bbPress(2.1.2) forums, topics and replies to another fresh WordPress installation? If ...
0
votes
1answer
332 views

Testing for a shortcode using a function. 404 page throwing PHP Notice

I'm using the following function (can't remember where I found it, but I think it was written by pippin so thanks to him) to test for a shortcode. function has_shortcode($shortcode = '') { ...
0
votes
1answer
33 views

Hard Define Custom Field Value

Is it possible to hard define a custom field value with a function? As in, no matter what WordPress will always set the value of 'some_meta' => 'this'
0
votes
1answer
3k views

WP_Query class not found

The idea is simple. I have a drop-down menu generated with get_categories(). This outputs a list of categories in an unordered list, each in it's own li element. I'm getting the text values of those ...
0
votes
2answers
69 views

How do you set the default page in WordPress?

Assuming I have a page with the URL http://papermepress.com?page_id=2 that I want to set as the default, what do I need to do so that when a user types in just http://papermepress.com they see that ...
0
votes
1answer
1k views

Responsive dropdown menu with smaller screen sizes

Working on a theme template and trying to make the menu responsive, so that it will change from a horizontal layout into a block format at a certain screen resolution. I have tried one tutorial which ...
1
vote
1answer
300 views

display URL or permalink instead of page title in dashboard

Is there a way to display the page url or permalink instead of the page title on example.com/wp-admin/edit.php?post_type=page I am doing some A/B testing and some pages have the same title, but a ...
0
votes
1answer
266 views

update_post_meta after form is submited

I'm using the plugin "Formidable" to easily manage and create forms. I have set a custom post type, and created an extra post_meta. I can use meta('test'); within the loop to show my meta value on ...
0
votes
2answers
215 views

One author not showing in Author drop down list while editing page

USER01 is not showing in Author drop down list while editing a Page if he's in the my custom ROLE "mycustomrole". If I change his role as an AUTHOR, and add the very same custom and non custom ...
1
vote
0answers
152 views

Disable date based archives for all categories except one

I want to remove all date base archive url permalinks (url_rewrites) from my site, excluding for only 1 category. How can i do that. For example: www.example.com/category_1/2012/ -> 404 error ...
2
votes
2answers
357 views

Remove Author Slug & Replace With Username

I reviewed all related questions but none tackle this exactly so I'm posting the question in hopes the pro's know how to handle this. I would like to change the author slug to remove the term /author/ ...
2
votes
1answer
54 views

What is the most secure way to set up the MySQL user in WPMU?

I am setting up Subdomain based MU on my domain.Everything is hosted by me running on one CentOS/Webmin VPS. Will I be better off setting the MySQL user's domain as localhost, 127.0.0.1 or with a ...

15 30 50 per page