0
votes
1answer
52 views

why php notice is not getting ignored?

I have been adding at the top of my wp-config.php the following to switch off php logger but won't take any effect on it. Is there something else what I should do? error_reporting(0); ...
0
votes
1answer
57 views

wp query problem

I am using wp-postviews plugin to to track views of my post The author provided a query to order post by views in index.php <?php query_posts('v_sortby=views&amp;v_orderby=desc') ?> ...
0
votes
1answer
115 views

Can admin_bar_menu or another action be used to modify the admin bar on the admin side?

I have used add_action('admin_bar_menu', 'modify_admin_bar') to change the admin bar on the "front end" of WordPress (the site the user sees). However, it seems that modify_admin_bar() is not called ...
0
votes
1answer
119 views

Query Custom Post Type and sort by year

How do I create a page template were I can query all the posts from the Custom Post Type - let's say - "project" and order the results by year, displaying the year value at the beginning of each group ...
0
votes
1answer
177 views

Can I make a search query which includes a space?

I want to search via WP_Query for the test "hello " including the last trailing space. Is this possible and if so, how do I do this?
0
votes
1answer
41 views

How to create a widget on witch a registered user can create a checklist

I have no idea where to start. I want to create a widget. with the following features show a button to create a checklist. Show a list of already created checklists created by the user. Mark ...
0
votes
1answer
102 views

Check if post was modified by editor different than post author

Is there a way to check if a post written by user X is modified by a different user (for example admin, or an editor)? What I want to achieve: I have a site where posts are submitted for publication ...
0
votes
1answer
279 views

Gallery backend only

I'm using Wordpress to power the blog section of my website, and also my event timeline (using custom post type admin area). I'm looking to add the option to create image galleries, and include them ...
0
votes
1answer
54 views

One loop for sticky, one for all the rest - how, without specifying category?

I have styled an archive page to display one sticky post at the top with special design, and then to display all the rest of the posts in that category (except the sticky post) listed in standard ...
0
votes
1answer
75 views

Automatically adding images to a certain page through the Media Uploader

I have a plugin that calls the Media Uploader to allow users to add images to a Page. The uploader is being displayed and taking images fine, but it is not attaching them to Page ID 65 as I wish (or ...
0
votes
1answer
223 views

Upload image without media-upload

I've been looking a while and didnt found: How to create simple, old, good, upload via 'Browse' button and 'Dir' field that will upload and return image url. I dont want to use media-upload. Would ...
0
votes
1answer
179 views

Pagination not working on homepage

I tried multiple solutions but its not working. When I go to /page/2, it doesn't work. I'm executing custom query in index.php of my theme. if ( get_query_var('paged') ) { $paged = ...
0
votes
1answer
71 views

How can users sort multiple pages?

I'm using the following code to display a list of properties on multiple pages. I would like to give users the option of sorting the results by custom fields (perhaps city, or property name, or ...
0
votes
1answer
70 views

ajax page template

I am creating a wp theme that gets all its data via ajax (using ajax-admin.php). Now, I've set a div that would have the html of the page there (in the index.php file). My index.php is a simple one, ...
0
votes
1answer
45 views

Wordpress Hide Widget If $_Session Is Active?

I was wondering if there is an easy solution to add some php "if" code when my website tries to show the widgets and if it has $_SESSION I set on homepage (based on the source of which they came) not ...
0
votes
1answer
108 views

How to add all categories into an array and extract the categories names and use it with a custom meta box

Basically I need to add custom meta boxes to pages and one of this options must be a list of categories from previous posts. I've managed to add the metaboxes and wrapped the categories in a array, ...
0
votes
1answer
95 views

How do I display the next 3 posts in the sidebar?

I'm building a simple "company news/press release" site. We'd like to display the latest five post excerpts on the home page with the next three post titles (six through eight) and a single "Archives" ...
0
votes
1answer
320 views

Help integrating Custom post type meta field with custom profile fields

I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them. I have added some spots to the profile using ...
0
votes
1answer
339 views

wp_insert_user keeps echoing values

This is bugging the heck out of me. Essentially I've narrowed the issue down to one line of code: $user_id = wp_insert_user ($userdata); From what I can tell nothing should be echoed here, but I ...
0
votes
1answer
53 views

Custom field drop down to set the term of the post when published

In my functions.php i'm trying to check if the user has selected a value in a custom field drop down and then set that value as the term of the post when it's published. I'm using the following ...
0
votes
1answer
159 views

Front-End Editor email notification issue

I'm trying to send a notification email when a user updates a page/post, either in the backend or by using the Front-End Editor. It works fine when updating in the backend but no data is emailed ...
0
votes
1answer
77 views

How to import individual blog posts into Wordpress?

I'm trying to move some content from another website into blog posts for work, and I need a little bit of help. Basically my task is to parse a bunch of files into their content, put them into a ...
0
votes
1answer
35 views

URL to an image in a post is changing when permalink is set to custom. Can I avoid this?

I have a buy-button image set in all posts on the entire site. When permalink settings are default the URL to that image file is www.mydomain.com/images/buy-button.gif. When permalink settings are ...
0
votes
1answer
54 views

Setting a Master Menu on a Custom Post Type

I am currently developing a site for a car dealership to list their inventory. I have setup the car up as a custom post type. Each post will have children (gallery, features, accessories, etc). I ...
0
votes
1answer
154 views

Get next post when using pagination with WP_Query?

How do i specify which "page" to get when using WP_Query? I'm using pagination and i only display three posts per page, but i need to manually set which page to get, because Wordpress doesn't do that ...
0
votes
1answer
57 views

Create a Page Templete to Display Table Of Content for Custom Taxonomies

I have created a custom post type named "Training" & a Custom Taxonomy for the same named "Table Of Content" I need to create a Page template to display Table Of Content Something like this ...
0
votes
1answer
102 views

Query posts by custom fields

I am making a theme for a hotel, and I need to be able to provide functionality to search by the following custom fields: Location and Price. I need to be able to query them from the query string ...
0
votes
1answer
79 views

why the current date do not update

I'm using the following query to update fields in my table if token is matching, but the current date is not getting inserted $this->wpdb->update( 'wp_competitors', ...
0
votes
1answer
101 views

ajax sends data to plugin

I'm trying to send datas via jquery ajax to my plugins class to update a filed in a table and I'm getting the following error Fatal error: Call to a member function query() my class looks like ...
0
votes
1answer
381 views

All pages are redirected to homepage if using Permalink Custom Structure

My website http://laptopre.net/ is running on WP 3.4.2. When I changed the Permalinks setting to Custom Structure - /%category%/%postname%/ , all the pages in my site are redirected to homepage. ...
0
votes
1answer
180 views

Wordpress not displaying themes in the wp-content/themes folder

I'll do my best to explain this but its weird to say the least. So the two default themes (twenty ten and twenty eleven) appear under the Appearance>Themes tab in the wp admin. However, if I add one ...
0
votes
1answer
105 views

Loop posts without any taxonomy

I've grouped my pages by some custom taxonomy. But I need to care about those without any taxonomy set. My code is: $page_groups = get_terms('page_group'); //get all existing page groups foreach ...
0
votes
1answer
59 views

Wordpress mu domain mapping

I've asked this question on the plugin support page but can't get an answer :/ Is it possible to use the domain mapping plugin to map domains in Wordpress (multisite) that are mapped to domains with ...
0
votes
1answer
119 views

Custom search with meta fields

I made a custom search form with text fields and dropdown. Now, my form is in its own template file - sidebar-search.php. I have also made the searchform.php which should get the data from sidebar ...
0
votes
1answer
437 views

WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)

I'm trying to write a new "related posts" widget (for the single post view) for my custom post type, filtering by custom taxonomy terms that the related posts should have in common with the current ...
0
votes
1answer
79 views

Function is Missing an Action Hook

I have tied an action into a status change, which works on the backend. However,using a frontend button for updating post status does not trigger the ...
0
votes
1answer
619 views

Link a lightbox thumbnail to a post instead of opening the lightbox

On my website portfolio I use a heavily modified version of the Swatch theme from Woo Themes. The theme makes the thumbnails for my portfolio pieces link to the lightbox. I want the thumbnails to ...
0
votes
1answer
125 views

woocommerce questions - trying to pic an ecommerce solution

I need to have a conversation with someone familiar with woocommerce. Is there a phone number for support, i am willing to pay for the support call. I have a company that messed up the redo of my ...
0
votes
1answer
134 views

Retrieve post thumbnail as array

How can I retrieve the post thumbnail (featured image) as an array? Using get_post_thumbnail() I noticed in the WP documentation that there is a third parameter from, which I understand, one would be ...
0
votes
1answer
229 views

Next Page Link shows same posts on custom template

I have a Page, with Custom Page Template to display 6 "Posts" with a specific category on that page. The Code that i have used can be found here: http://pastebin.com/E52u0TTi Also, i have tried: ...
0
votes
1answer
176 views

No line breaks in syntax highlighted code

I've installed Sunburst Code Prettify on my new blog. The prettifier uses Highlight.js to prettify code. I've placed the following Python code in a post: [prettify class="python"] >>> ...
0
votes
1answer
77 views

Is there a full explanation on how to share a database with two Wordpress sites on same server?

I have read that you can have two wordpress database tables (using different table prefixes) to share the same database. I understand the concept but does any know of or can anyone provide an outline ...
0
votes
1answer
86 views

Set active class in a Php foeach

I have the following code to display a list of taxonomies in Wordpress. It works and my only concern is the active class (li class="active"). Err, how do I go about making it dynamic? <ul ...
0
votes
1answer
66 views

How to can I search range of products using between

I want to show the range of my houses as per size. Ranges will be: 1-50 50-100 100-150 150-200 200-250 +250. HTML code <select name="size" id="search-type" class="text<?php echo $select_wide; ...
0
votes
1answer
378 views

WP_Query post at custom position

Lets say I have a custom query which based on two custom post types: $wp_query = new WP_Query(array( 'post_type' => array('post-type-1', 'post-type-2'), 'post_status' => ...
0
votes
1answer
124 views

2 tick boxes appearing below comments

In my site I have two tick boxes appearing above each other underneath the comments section. I have tried disabling pingbacks etc. How do I remove these? example - ...
0
votes
1answer
185 views

Wordpress Taxonomy Menu

I have got the following simple code. <ul id="filter"><?php echo '<li class="active"><a href="#" class="all">All</a></li>'; if ( $count > 0 ) { ...
0
votes
1answer
46 views

How to separate a specific page's comments from other comments

I am using WordPress comments on a page as a Contact form. Comments from my Contact form page are set to auto approve and only visible to the logged admin. Now in the dashboard I would like to ...
0
votes
1answer
165 views

How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite

At the moment, users with role "Author" can only view but not add or edit polls. "Editor" and "Administrator" (site administrator) can add and edit polls however. This is despite the fact that I ...
0
votes
1answer
190 views

“Trying to get property of non-object” error when using custom taxonomies

I am encountering a weird error when working with custom taxonomies. I am trying to get the name of categories of a custom taxonomy: $terms = get_terms('taxonomy_name'); foreach ($terms as $term) { ...

15 30 50 per page