0
votes
0answers
14 views

add_meta_box issues

I have the following code in functions.php: add_action( 'add_meta_boxes', 'create_meta' ); function create_meta(){ add_meta_box( 'Session details', 'Details', 'create_details', 'portfolio', ...
0
votes
1answer
8 views

Microformats in a single post - layout conflict

WordPress uses microformats, for example, when we use the function post_class() in the DIV containing the article. It automatically includes the class called hentry, which is used in microformats. ...
0
votes
1answer
23 views

Is it possible to share WP database over Dropbox?

I'm developing WordPress themes on multiple machines right now: Windows & XAMPP, MAC + MAMP My themes are shared on Dropbox and are prefectly synced between all these machines (don't worry, ...
0
votes
1answer
22 views

My php code is not being executed

I have a wordpress page that has this code in the text editor part of a web page: This page creates a cookie and houses a etst link that is only accessible to the holder of the cookie.   ...
0
votes
0answers
15 views

How can I check a new comment reply in realtime and get the reply text for a notification system in wordpress?

I would like to, when you get a reply for your comment, you get little box, in right side, something like this with the reply text. The notificator must be work in real time, and must be, get the user ...
0
votes
0answers
5 views

3 Column Loop with Pagination

I tried to run a loop and split post in 3 columns and then added pagination using Wp PageNavi wordpress plugin. It was working fine from where i copied this code but it seems to be not working for me. ...
0
votes
0answers
4 views

Need help creating Multi-steps registration

Hi guys I'm using buddypress's Xprofile feature to add more fields to the registartion form , what I want is to make it a multisteps registration where in the first page a user can only enter his name ...
1
vote
1answer
16 views

Do we have to santise html passing into Javascript ? How?

I am passing a <ul><li></li><ul> to jquery .html() method and it works. I am assigning the html to a varaible and passing to .html() method . As some security scans suggest ...
0
votes
1answer
22 views

How do I debug an error that a plugin is causing?

I'm having an issue debugging why the plugin I'm creating keeps displaying the error You need to upgrade your database as soon as possible.... The work I've done so far has been on a remote dev site, ...
0
votes
0answers
12 views

Using Ajax to autocomplete a form with data from db

I'm struggling to get the following: User fills out personal number Other input gets autocompleted with data from database As I have never made a plugin, help is greatly appreciated, my database ...
0
votes
0answers
10 views

How do I show only the latest post on my homepage?

I was wondering how I could set up my blog so that it only shows the latest post on the homepage. I do not want to have to change anything code-wise. How would I do this?
-1
votes
0answers
12 views

Search Plugin For Scheduled Posts [on hold]

I have a WordPress site (not a simple blog) where pretty much all my content is in a scheduled or future status. I'm trying different search plugins such as Search Everything and Relevanssi, and they ...
0
votes
1answer
38 views

Display page of custom posts?

I have a custom post type, "design_asset". I am displaying them on a page template, with the loop <?php rewind_posts(); $paged = ( get_query_var( 'paged' ) ) ? get_query_var('paged') : 1; $args = ...
0
votes
1answer
13 views

Wordpress post count not showing for custom post type author

I've created a few custom post types based on Dave Rupert's boilerplate and then migrated existing posts to these newly created CPTs via Post Type Switcher plugin. I did not make any changes to the ...
0
votes
2answers
10 views

Is a user_meta research case-sensitive or not

I am using the Wordpress get_users() function to search for users with a specific meta_key value. $wordpress_user = get_users( array('meta_key' => 'unique_id', ...
0
votes
1answer
11 views

Page not loading content - Body archive - page

I'm working on this page The problem Is that is not loading any content, altought it's english version does: link I'm not getting any console errors so can't find where the problem is. The only ...
0
votes
0answers
12 views

Backend menu that shows pages with specific page template and their child pages

I've set up a menu in the backend that shows a list of pages that have a specific page template assigned to them. I've managed to do this using the code below, but I also want to display the child ...
0
votes
0answers
10 views

Choosing A Specific Category for WooCommerce Permalinks

I'm new to woocommerce and trying to setup a site. I have the following structure: Products Books Shirts Pants Then some other categories with subcategories like Book Types Architecture ...
0
votes
1answer
24 views

What are the performance hiccups when building plugins?

Im very interested in plugin development for wordpress. But I need to get a better understanding as to what parts of a plugins functionality is causing more or less harm to the performance of ...
0
votes
2answers
30 views

Show only public custom posts in home page

Hi i am working on custom post types in wordpress presently we are using below code to dispaly all custom posts in home page <?php $args = array( 'public' => true, '_builtin' ...
0
votes
2answers
17 views

Display an author's posts on his own author page

I have a blog that publish articles of any philosophers.Each philosopher has a special page that includes information about him. I've created a post type called philosopher. I want to display the ...
0
votes
0answers
21 views

AJAX filter posts on click based on category

This is my first foray into AJAX, I've been splicing bits of code from various tutorials which probably hasn't helped. I have a list of categories on my homepage (index.php) and a list of the most ...
0
votes
0answers
18 views

3.9 Galleries & Thumbnails

I'm using WP 3.9.1 and have added a gallery (Add Media ->Create Gallery -> pick images -> Gallery Settings: Link to Media File.) That works, almost. The problem is that I need the gallery to use ...
0
votes
1answer
19 views

Change position of entry title

I've been unable to move the post entry title to under the post's image. Whenever I do this, the title moves under the content and appears just above the footer. loop-single.php - <?php if ( ...
-1
votes
0answers
8 views

Potential/Optimal set up for deploying and managing multiple wordpress sites with different domains

I have to deploy 10 different wordpress sites for different clients in the next month. I would like to host and manage all the sites from a single cloud service (Heroku, AWS, Rackspace etc). I would ...
-2
votes
0answers
9 views

Disable radio buttons default in Woocommerce [on hold]

sorry for my english. Can I disable the default choice radio buttons for shipping costs and payments in Woocommerce? I would like to have radio buttons blank. In short, the radio buttons are activated ...
0
votes
0answers
12 views

Access Shortcode in ajax code?

I have some data which is pulled over using ajax. Data works all fine, however, I have some shortcode been used in the same data which doesn't display as expected. It looks like shortcode function ...
0
votes
1answer
30 views

list posts of two post types in a single template

I have two post types. One is post & other one is event. Both sharing same categories & tags. I am listing the posts by archive.php. Now I am listing the posts as general by two different ...
0
votes
1answer
10 views

Show all post of a taxonomy with one specific term not working

I have a custom post type "restaurants" and a taxonomy "location", so I can get the restaurants for one location by URL. On the taxonomy page for one specific location (CityA) I want to display all ...
0
votes
0answers
9 views

Custom post types as categories for another custom post type

I have a custom post type of companies that contains company details, I would like to setup another custom post type of news, with each news post being associated to one of the companies. Is it ...
1
vote
0answers
11 views

What's the difference between Role and Meta capabilities; When to use map_meta_cap() filter

I'm getting very confused about the following things: difference between Role and Meta capabilities, difference between Meta and Primitive capabilities, when to use map_meta_cap() filter. There ...
0
votes
1answer
14 views

If taxonomy show class of active

I have a nav which I would like to detect if an li should have a class of active or not. I usually do this for a normal page like this: <li <?php if ( is_page('about')) { echo ' ...
0
votes
1answer
27 views

get_post_meta not working inside a function in functions.php but works outside

function notify_new_posts($post_id) { $keyval = get_post_meta( $post_id); $buyer_wdistance = get_post_meta( $post_id, 'cf_wdrive'); //$buyer_wdistance = $keyval['cf_wdrive'][0]; ...
0
votes
1answer
30 views

Replace admin header logo with an image

I want to replace the default WordPress admin bar logo to my custom logo which is a PNG file. I have tried a code it's not working. function custom_logo_admin_header() { echo ' <style ...
0
votes
2answers
18 views

Display custom post type category taxonomy

I have a custom post type and a taxonomy which allows the user to select which category the post is in. Here is my custom taxonomy: add_action( 'init', 'create_talcat_taxonomy', 0); function ...
0
votes
0answers
19 views

Contact form spam, without form?

I previously had a contact page with the theme built-in contact form. I received a lot of spam with that form, and one day I had to change it to add functionalities (upload to google docs) and I ...
1
vote
1answer
19 views

Custom taxonomies capabilities

I have registered several custom taxonomies for a custom post type. Code for one of them is the following: $labels = array( 'name' => __( 'Genre', 'textdomain' ), ...
-1
votes
0answers
11 views

Getting PageViews for a Single Page Using Google Analyticator [on hold]

Using the Google Analyticator plugin, is it possible to create a custom function (within functions.php) that will retrieve the PageViews for a given page? Im thinking something like ...
1
vote
1answer
31 views

Custom Post Type Capabilities

I have a custom post type which I want authors to be able to edit others posts but no able to delete others posts. My code as follows: $labels = array( 'name' => __( 'Book', ...
0
votes
2answers
25 views

Why does my delete_post hook get called twice

Here is how I've implemented it: add_action( 'delete_post', array( 'MyClassName', 'delete' ) ); In the delete function I was using a $wpdb->insert command to see whether the function gets called. ...
0
votes
1answer
16 views

pre_get_posts conflict with archive posts

Currently using bbPress as a forum. But now I have some conflict and archive post page is displaying instead of forum? How should I proceed? Any ideas? EDIT: Actually found the causing problem. It ...
0
votes
1answer
20 views

Is it possible to call a template file inside wysiwyg editor? And how?

Is it possible to call a template file, say for example mycustomtemplate.php inside the default Wordpress WYSIWYG editor? I had this content. My team (This is my content inside the WYSIWYG) then I ...
0
votes
0answers
14 views

Pagination on front page posts (custom query) stopped working after installing s2Member [on hold]

I am using the following code to set the pagination for both the custom and main queries on my site. It has been working fine until I installed s2Member. Now, the problem is that only on the front ...
-3
votes
0answers
21 views

give the script for below images [on hold]

give a php script, when we enter side id then how many people search on that level,stream,course,year,city..etc will come and also when we submit without giving siteid then total no of users viewed ...
0
votes
1answer
11 views

Modifying Wordpress XML-RPC Built-Ins

In short, I want to be able to modify the wp.getPost response to also return additional data, like the permalink. I thought it would be as easy as just calling the same function the xml-rpc code ...
0
votes
0answers
10 views

Session getting destroyed

I have started session from config.php if (!session_id()) { session_start(); } Have added the code in header.php: session_start(); To maintain the session But My website is destroying ...
0
votes
2answers
33 views

How to make a template for a specific post of a custom post type?

For the Page post type: I can create a logout page in the CMS and create a page-logout.php for its template. I created an Account post type but I can't use account-user-registration.php for a User ...
-1
votes
1answer
20 views

Display recent posts on front page

I am new to theme development in wordpress i am working on a theme, i have a front page on which i want to display only the most recent 4 posts of any category to be displayed my code for this is ...
0
votes
2answers
26 views

post_prev & post_next within same category

In my single blog view, I only want to show the Prior and Next buttons within the same category the current post is in. I thought I could just change these two lines thus (set first term to true). ...
0
votes
0answers
4 views

BuddyPress not installing theme

I am installing BuddyPress in my local machine, to simplify FTP part, I am copying BuddyPress folder to var/www/html/wp-content/plugins folder. Then I activate BuddyPress from web console of ...

15 30 50 per page