0
votes
1answer
918 views

What is the difference between Twenty eleven & roots framework?

Just amazed by the usability of Twenty eleven wordpress theme & extensibility of roots theme http://www.rootstheme.com Now in conflict. I want all twenty eleven features to use on extensive ...
2
votes
1answer
62 views

automated tests as a user?

I checked out (with svn) the code for Automated Testing. However, I want to run unit tests as a specific user. Is there a way to do that? That is, is there a way to loggin with php code alone?
1
vote
1answer
500 views

Remove bulk actions based on user role or capabilities

How can I remove the "bulk actions" based on user roles or capabilities. Actually I have this code to do the job, but now I need to exclude the site admin, I need to let the administrator to access ...
3
votes
1answer
368 views

How do i link gallery thumbnails to different url's using the wp native gallery?

Is it possible to link each gallery thumbnail if i use the built in WordPress native gallery?
2
votes
1answer
1k views

Problem using is_single() to enqueue script from functions.php

I'm having trouble only adding scripts to single post pages. I need to both include and exclude certain scripts using is_single() but it doesn't work either way I try it. I have the template tag on ...
0
votes
1answer
63 views

Wordpress Plugin Authoring question about jquery and css

When I'm writing a plugin, do I assume that jquery is included, or should I always wp_enqueue_script it and let wordpress figure it out? Also, what's the best practice for getting an image path ...
0
votes
1answer
12k views

Add qtranslate language select box to menu [closed]

I can't find any info on how to operate qtranslate and add the select box to change language to the right of my header navigation. Any ideas?
7
votes
7answers
5k views

How to generate thumbnails when needed only?

I have 1000 images. How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its ...
0
votes
2answers
349 views

Should i use the wordpress Options table or to create database table..?

I have an application built in asp.net but i'd like to port it over to wordpress as a plugin. Is it practical to develop the php version of this app using the Wordpress options table or should i ...
0
votes
2answers
112 views

Specific html within wordpress loop

I am trying to setup a wordpress slider, how can I achieve exact below result within a wordpress loop <div id="carousel"> <img src="slide1.png" alt="" ...
0
votes
1answer
76 views

Recent Posts+, how to solve multiwidget?

I have installed the Recent Posts plugin, that came with a widget. Now, i can only add one instance of the widget to the widget areas. I want one instance to show in my widgetarea that only appears on ...
1
vote
4answers
2k views

WordPress is stripping escape backslashes from JSON strings in post_meta

I thought I was making my life easy and being future-conscious by saving some content as bits of JSON in custom post_meta fields. Unfortunately, WordPress doesn't agree and is making my life ...
2
votes
1answer
625 views

how can i simple change upload folders to %year%/%month%/%day%?

Is there a easy way to do that? Godaddy have a silly limit of 1024 files in one folder and my client upload more than 500 and with the thumbnails we get lot over the limit. If im able to changed ...
0
votes
2answers
70 views

Wordpress plugin won't show on some themes

I have made a wordpress plugin following standard wordpress tutorials. This plugin add a file upload to the comment form by using simply this function: add_action( 'comment_form_logged_in_after', ...
4
votes
1answer
1k views

Create posts on user registration

How can I create let say 3 posts after the user finish the registration ? The ideal outcome would be to create 3 posts using the user as the author of the posts and with some pre-defined values. ...
6
votes
1answer
1k views

Change admin language based on user (in single-site)

I'm trying to make a small plugin to install in some sites of a german client. I can make my way around WordPress in german, but would be easier if it was in english. There's a plugin that manages ...
4
votes
1answer
70 views

Uploading DB to server from local is not matching the post dates

I just created a custom WP CMS and am having trouble with the custom post maintaining the correct order on the front-end. In the back end the date order is correct but is not being reflected on the ...
0
votes
2answers
186 views

Redirecting to new URL structure and 301

I had links like example.com/?location=boston on my site. These were indexed by Google. Due to obvious SEO reasons, I had to change the URL structure to example.com/deals/boston. The old URLs are ...
0
votes
1answer
425 views

exclude categories from search results

I have the following function, I need to exclude categories from it because it works across the site in several different places. How can I do that? // allCategories(): return an array of categories ...
2
votes
1answer
558 views

WP_Query display next custom post from today's date

I have a calendar plugin that uses custom posts types to create events. There are several custom fields that allow me to create various and seemingly unlimited post queries. The one I'm currently ...
4
votes
2answers
4k views

Why might a plugin's 'do_shortcode' not work in an AJAX request?

tl;dr: Contact Form 7's shortcode doesn't work in an AJAX request when called with do_shortcode functions.php add_action('wp_ajax_ps_get_survey_form', 'ps_get_survey_form'); ...
0
votes
1answer
610 views

Multiple images per post - Show random image elsewhere

I'm after either a plugin suggestion or code suggestion that best handles images per post. Here's the scenario, every post could have up to 6 images, all to be assigned class names etc. All to be ...
9
votes
2answers
14k views

Custom Post Type URL Rewriting?

I setup a custom post type for my portfolio projects. The main URL for this is located at /projects/ Now I've also setup my blog posts permalink to /articles/*/ for the permalink structure. This ...
6
votes
1answer
3k views

wp set object terms vs wp set post terms

Examining the following sample code snippet from the WP codex, $post = array( 'ID' => [ <post id> ] //Are you updating an existing post? 'post_author' => [ <user ID> ] //The ...
0
votes
1answer
68 views

Use get_posts() with 'post' and 'page' queries at the same time?

I'm trying to grab all posts which are 'posts' and not in category '3' and '5' and which aren't 'pages'. Is this possible to do using one single get_posts()? Because I'm querying both actual posts and ...
0
votes
3answers
272 views

Wordpress -> PHPBB look a like

I want to create an online forum. From my server settings I have two option of smf and phpbb. I hate both of them!. Is there any solution to turn the wordpress to a full blown online forum?
0
votes
1answer
408 views

custom post type template changes between preview and publish

I have set up a custom post titled project where I have also set a theme file page-project.php. When I create a post under that custom post type, and I preview it, it shows on the using the ...
1
vote
2answers
86 views

Output HTML only on individual post view

I am looking for a way to output some html (javascript actually) on a post view only and not on a main page, tag, category view (where WP outputs several posts). E.g it would be output on this page ...
10
votes
2answers
17k views

Woocommerce - Add a product to cart programmatically via JS or PHP [closed]

I am using the Woocommerce plugin to facilitate a small e-commerce part of a site and need to add products to it's cart via some call or function rather than using it's own 'add-to-cart' buttons. By ...
0
votes
1answer
28 views

what is name of this plugin used for photo gallery page [closed]

i need to now what is name of this plugin that's used for image gallery page in this site
0
votes
2answers
84 views

Creating a widget that displays the content of a page

I have a page that displays information from a query (I placed the output of the query in a custom page template and have the information display that way). How can I put this information into a ...
0
votes
1answer
51 views

How to control display of page lists on sidebar that doesn't have childrens

I am using the following code to list the child pages of current page on my sidebar. It is working very well. $titlenamer = get_the_title($post->post_parent); $output = ...
0
votes
2answers
216 views

how to get the post id in the option tag

$term_id .= $_POST['main_brand_id']; $term = get_term( $term_id, 'state' ); $slug = $term->slug; global $post; $args = array( 'post_type' ...
0
votes
2answers
2k views

Images in sub-pages fail to load

I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids. The content of the .htaccess is this: <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
2answers
77 views

problem with add_size_image

why if im add size like : add_image_size( 'featured1', 466, 316, false); add_image_size( 'featured2', 466, 260, false); the seconde size Does not generated What is the problem ?
1
vote
1answer
12 views

Editing a list of several fields

I need to edit a list of quotes. Every quote consists of a (short) text, author's name, author's title. What is the best way to create an editor of such data in WordPress? It seems that the simplest ...
0
votes
1answer
125 views

toolbar not visible on pages using front-page template

My profile is set to show the WP toolbar when viewing the site, but on a page using the front-page.php template the toolbar space is reserved but its contents are not visible. What could be the reason ...
0
votes
1answer
2k views

WP_Query with custom post type ID

This code isn't echoing out anything, even though I'm 100% positive $mixtape_id is set to an integer which corresponds to one of the posts within the 'mixtapes' custom post type $query = new ...
1
vote
1answer
163 views

How-to Change Content with location change?

I have to develop a site using wordpress having thousands of pages. Pages will have the same content but there will be change in the location of the content. For example location will be Sydney, ...
1
vote
1answer
899 views

Plugin to set all Posts in a certain Category to a certain Post Format

I want to setup my WordPress so that whenever I create a post with the category "Tweet", my wordpress installation automatically changes the post format from post to aside. This will help me because I ...
2
votes
1answer
663 views

Temporary capability for current_user_can()

Is it possible to intercept calls to current_user_can() ? Example: current_user_can('rate', $post_id) There's no "rate" capability registered, but could I somehow hook into that function and do my ...
5
votes
2answers
993 views

get_terms vs. get_categories: does it matter?

I'm fairly new to wordpress and am coming across new things each day - one was today when I happened across get_terms and noticed that it was basically the same as get_category. Any particular ...
0
votes
1answer
123 views

Pretty permalinks and Facebook comments

I have pretty permalinks enabled like this: http://domain.com/category/post_name I also use facebook comments widget for the comments, Currently the href attribute is set to the pretty permalink by ...
0
votes
2answers
5k views

get_post_meta just returns Array

Here's what I am trying to do: I am trying to get one page in wordpress to pull data from custom fields in other pages. So that when a user creates a page and uses a particular custom field (in this ...
0
votes
1answer
468 views

Issue with RSS Feed in Firefox and Safari

The feed for a site (http://www.affordabledrumlessons.com/feed/) shows fine in Google Chrome, but in Firefox and Safari it gives errors. I've tried clearing the cache, but that doesn't solve the ...
5
votes
2answers
158 views

Template for individual post designs

I browsed through the suggested posts, and couldn't find anything that was exactly answering my question. I apologize in advance if I'm reposting something obvious here, but there you have it. I want ...
0
votes
1answer
75 views

Semi-Private Comments + page comments -> is it possible?

is it possible to do this: User need to register and can only see comments written by himself or by an admin. Admins can see all comments create a profile page that user can see all their comments ...
0
votes
1answer
30 views

Edit part of a post

In some wikis (e.g., mediawiki), if you want to edit part of a page, you can either click an edit link that lets you edit the entire page -- or, if you just want to edit a single section of the page, ...
0
votes
1answer
237 views

Support for simultaneous editing

I'd like to allow multiple authors/editors to simultaneously edit a single page. Each author should immediately see any changes made by any other users concurrently editing the page (just like ...
2
votes
2answers
4k views

WordPress Paginate $wpdb->get_results

Due to a complex multisite config, I have a query which combines the posts from two blogs and I would like to paginate the results. I am grateful for any help. I have posted my query. ...

15 30 50 per page