1
vote
2answers
6k views

WP insert post and custom taxonomy

I have create a custom post type in my WordPress attached with a custom taxonomy. The post collect date from the from end of the web site by using wp_insert_post(). This is my Custom post ...
3
votes
1answer
222 views

Can't find wp-cron.php but I can see it in the public folder [closed]

I have a problem with the wp-cron.php file. I can see it when I browse the public folder and it has the permissions set to 755. But still I am getting this error in my server error log: [Thu Mar 15 ...
1
vote
3answers
2k views

Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor

Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
2
votes
1answer
471 views

Meta_query with relation 'OR' killing server CPU

function get_nb_offres( $typeOffre ) { global $type_bien_correspondances; $args = array( 'post_type' => 'annonces', 'meta_query' => array( 'relation' => ...
1
vote
2answers
2k views

Widget modifications in a child theme

Can I modify widgets in a child theme? When I change the footer, I don't need extra steps -- it just works. What about widgets? Example: A widget of a theme I am using makes use of google maps. I'd ...
0
votes
2answers
231 views

AJAX call - failling to call do_action

I am trying to make an AJAX call for a plugin. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script ...
0
votes
1answer
892 views

Wordpress Uploader Editor shows broken image

I have the latest wordpress version installed. When I upload an image in the control panel for a post, I then go to edit it (crop an image for the thumbnail the way I want or rotate or do any kind of ...
2
votes
1answer
126 views

Can ordering post list by meta_value cause performance issue?

For some code refinement and to add new features to my plugin, I want to display posts ordered by specific meta column value like this; query_posts($query_string . ...
0
votes
1answer
1k views

Pagination throws 404 error on custom taxonomy archive pages

I have created a custom taxonomy for a custom post type called "portfolio" like so: function jvs_portfolio_categories_init() { register_taxonomy( 'project-category', 'portfolio', ...
3
votes
1answer
907 views

add_query_vars and add_rewrite_rules

I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in ...
0
votes
1answer
277 views

Custom Post Type Query issue

I have a conflict issue with 2 custom post types. I have a template file archive-media.php and have created the related 'media' custom post type. This all works well, however in the sidebar I have a ...
0
votes
1answer
757 views

WP Editor, save content and category on frontend

I'm creating a plugin that shows a frontend editor that will be the content of the current post. But I don't know who to save the content from the wp_editor to the post content; I tried using on form ...
2
votes
2answers
1k views

Organizing shortcodes. How to display all of them and their attributes?

1. My shortcodes I've developed multiple shortcodes for my own theme, I'm loading them in functions.php like this require_once (MY_URL . '/bartag_shortcode.php'). Here's an exemplary bartag ...
0
votes
2answers
2k views

get_the_post_thumbnail('thumbnail-name') always returns empty string

I need to duplicate a list of thumbnails elsewhere on a page and have set up a few different custom thumbnail sizes in my functions.php file. If I use: the_post_thumbnail('photo-small'); Then the ...
1
vote
1answer
268 views

Display all posts that were published before full post on single.php

The way I would like my blog to work is a user clicks on a post that was published on 12th March 2012 (for example) they get taken to single.php where the content of that post is displayed as normal. ...
1
vote
2answers
1k views

Advanced Custom Fields

I am using the Advanced custom fields plugin to add a upload image option to a page, but I am wondering if there is a way so that, when I output it to a theme with <img src="<?php ...
0
votes
1answer
70 views

Wordpress doesn't load HTML

All, I'm trying to have a side navigation menu that once you click on a link it basically pulls the content of that wordpress page and displays it. I've got the following code to do this: $qry = ...
0
votes
1answer
312 views

Using CSS ID's and Classes with images in a Wordpress Horizontal Menu

just found this marvelous website, so, I'm new in Wordpress. I have a HTML/CSS website developed from a PSD file. Everything was going OK, Header, Footer, but when I came across the WP menu, I'm just ...
0
votes
2answers
131 views

JavaScript enque stopped working

Somewhere along the line I have messed up my js enqueue I am not sure how. I have the following in my functions.php file and I am including <?php wp_footer(); ?> in my footer.php before the js ...
0
votes
1answer
403 views

The Loop for my theme with static front page is not working

I'm developing a wordpress theme that uses a static page as front page. My wordpress is configured to use "Home" page as its front_page and "Blog" page to show the blog posts. When i try to use the ...
0
votes
1answer
571 views

how to programmatically change post tags

Is there a php function which can add/remove tags of posts? If not how would I do this? I am looking for something like this: add_tag($post_id, 'tag-name'); remove_tag($post_id, 'tag-name');
0
votes
1answer
115 views

Creating my own portfolio custom-type

I'm using WordPress to build my photography portfolio. So far I've created a Custom Post Type called session for each photo session, and I've managed to list all the sessions with each thumbnail in ...
0
votes
1answer
926 views

Ajax (jquery) wp_query pagination returns -1

I am currently developing an ajaxified theme for wordpress. I am listing the posts in a particular category, but the pagination returns -1 when clicked. Lets say I set showposts to 3 and a particular ...
0
votes
1answer
46 views

looking for a multi-user hello-world plugin

i am jumping neck deep into wordpress. I have set up a muilt-site environment. I am not looking for a hello-world/tutorial on creating a plugin in a muilt-site environment. Can i just follow this ...
0
votes
2answers
617 views

When to use custom DB tables or add_option?

I've got a pretty straight forward question. When does it become too much data to use add_option, update_option, etc, and instead use a custom DB table? For example, if a plugin stores thousands and ...
0
votes
2answers
249 views

add_theme_support( 'admin-bar' ) causes fatal error

I am trying to learn more on Theme Development so I've created my own and everything worked fine except when I added functions.php and tried to update it with something simple as: <?php ...
1
vote
1answer
346 views

Is it possible to add an item the Post Publish panel?

In the Admin area when you edit a post, I'd like to add a custom item to the Publish panel in the top right corner. Is it possible to access this through the Wordpress API? If so, what functions do I ...
3
votes
2answers
8k views

Upload multiple images in a custom metabox

I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
0
votes
2answers
2k views

next_posts_link and previous_posts_link problem

Below is the code from my author.php file. The problem is that next_posts_link and previous_posts_link only generate links based on the number of posts in the blog authored by the author in question, ...
0
votes
2answers
327 views

How can I display custom post types under multiple views?

I want to create custom post types with multiple views based on URL. E.g., suppose I have a "Product" post type. I would like to have something like the following: ...
1
vote
1answer
338 views

Admin Panel pagination link styles

Whenever I write plugins that use Admin Panels, I include some form of pagination using the paginate_links method and I have always been able to style them in a nice way using the suggestions on this ...
1
vote
1answer
4k views

Best Plugin to Reorder Post Types

I'm looking for a plugin that enables me to reorder pages, posts and custom post types from the normal listing in the WordPress dashboard. The closest plugin I've found is Simple Page Ordering ...
7
votes
2answers
6k views

Display Menu Name using wp_nav_menu

I have a custom menu that I can call just fine using wp_nav_menu. Is there a way to have the menu name displayed inside an h3 tag before the menu? Ex. <h3>My Menu Name</h3> <nav> ...
3
votes
4answers
4k views

How to check if a shortcode exists?

I'm using do_shortcode function to add shortcode in my template. But i would like to check if that shortcode exists before display them. I mean like this If (shortcode_gallery_exists) { echo ...
1
vote
1answer
387 views

Multi language site [closed]

I found that two most popular plugins for multi language sites are WMPL and qTranslate. First one is commercial, so this is not option, and second doesn't have ability to translate widgets in ...
0
votes
1answer
204 views

What hooks, actions or filters i can use to customize wordpress registration page and form?

i would like to customize the design of the registration page of wordpress and also the registration form. Can i create a registration page template? or maybe tell wordpress to use a custom ...
6
votes
3answers
8k views

Admin ajax request return 0 with die()

So i'm using this configuration for an AJAX call in the administrative area (like this): add_action( 'admin_head', 'ajaxPerNgg' ); function ajaxPerNgg(){ ?> <script type="text/javascript" > ...
1
vote
2answers
1k views

Custom Permalink with Dynamic Taxonomy for Custom Post Type - Works, but breaks other permalinks

My custom permalink with dynamic taxonomy is working for my custom post type. However, it breaks all my other permalinks. They display a 404 error in the content area (header and sidebar still ...
4
votes
2answers
4k views

SSL redirect loop using Wordpress HTTPS Plugin

I'm using Wordpress in a NginX server proxying to an apache server which serves the pages. Recently we wanted to force the use of SSL at least in the Admin section, so we installed the Wordpress HTTPS ...
0
votes
1answer
48 views

Adjust query on single

I am building an event manager. One of the template files I have is events-single.php which displays single events. At the bottom of this I have next and previous events using next_post_link and ...
1
vote
2answers
1k views

Is it possible to have a network of BuddyPress sites, a-la WordPress MU, with single-sign-on? [closed]

We're looking to create a network of BuddyPress sites that share a common design, a common theme and some common content, but the same userbase across all network sites. Each user will 'belong' to a ...
3
votes
1answer
111 views

Disabled trackbacks in Wordpress but I am still receiving trackbacks

I have disabled trackbacks in Wordpress back end discussion panel but I am still receiving trackbacks. How can I ensure that I do not receive any trackbacks?
0
votes
1answer
246 views

Any Wysiwyg tool to edit wordpress site based on given theme?

I dream of a wordpress dashboard that would be mostly Wysiwyg and let the user edit a site based on a given theme. In fact this is something I know is technically possible as I have seen it in this ...
0
votes
1answer
770 views

Fatal error: Call to a member function query() on a non-object in my ajaxpage

i am creating a new plugin,i got this error Fatal error: Call to a member function query() on a non-object in my ajax page. how to solve this error. this is my code: if ...
0
votes
1answer
105 views

Profiles site with access levels

I'm building a site for a intranet that display data about people (totally legal!!). we will call these people Alumni. The structure is like this: there are three roles, administrators, alumni, ...
0
votes
1answer
236 views

is there a plugin that allow editing pages from within pages without entering admin panel?

Is there a plugin that allows editing pages/posts without going to admin panel? I've a specific need to disallow access for users to admin panel of wordpress/multisite users. But I want them to be ...
2
votes
1answer
4k views

Permalinks for custom post-types within custom taxonomies not found

I have tried to apply the advice offered by TheDeadMedic in this post to achieve the following URL structure: example.com/activities = a WP page example.com/activities/type-term = a custom archive ...
0
votes
2answers
298 views

Customise the appearance of 4 specific post ID's within the loop?

I am using Isotope and I currently have each post rendering as a box on my homepage. I am currently trying to edit my (working) query that currently displays all posts with the category slug of ...
0
votes
3answers
816 views

Add class to every other posts using get_posts

I am currently using this little loop to display a list of posts using the "events" custom post type <?php global $post; // required $args = array('post_type' => 'events'); ...
0
votes
1answer
3k views

How to call a function only once (global variable scope)

I have been trying to work out the most effecient way to use functions in WordPress. I have a big slow function big_slow_function() that ideally is only run once. But I need to use the boolean that ...

15 30 50 per page