0
votes
0answers
2 views

jQuery character count in Contact Form 7 textarea

I use Contact Form 7 and I need a character/word count (twitter-like) for text area elements. I can't use the CF7 Textarea Wordcount plugin as it's not updated and I need to use the latest version of ...
0
votes
0answers
4 views

wp-config.php appears to be hacked [on hold]

It appears that a site I am working on has been hacked in some way. The wp-config.php file has some strange php functions at the top: http://pastebin.com/dcKPtAZu All wp-config.php files on the ...
-1
votes
0answers
4 views

Change Woocommerce default country according to ip

What I am trying to do is detect the visitor's country and then set the default country in Woocommerce to that. I have two pieces of code, independently they work. The first is to detect the country ...
0
votes
0answers
6 views

Exclude all subcategories in the_category (post)

I'm looking for a way to hide all the subcategories based in my post: It always displays in my posts like : Categorie, sub categories. So I'd like to exclude all of the sub_categories. I've been ...
0
votes
0answers
7 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
0answers
3 views

add custom classes to anchore in wp_nav_menu

i wana add custom class to anchores in wp_nav_menu outputs. default for example is : <li id="menu-item" class="menu-item menu-item-type-custom"> <a ...
-1
votes
0answers
8 views

How do I get_comment_meta() of rating from Woocommerce Plugin? [on hold]

I have a product vendor woocommerce setup on a wordpress site. People can sign up and add their own products, which are just custom post types, etc and other people who buy these products can review ...
0
votes
0answers
4 views

set custom field value when reaching expiration date

I had the idea to make sticky posts expire after a certain period of time. FYI, I am using a custom post type along with custom field suite and created sticky posts by creating a boolean custom ...
0
votes
0answers
5 views

Return only content in excerpt field in loop

I am sure this has been asked before, but I can't seem to find the answer, although it seems simple enough. I have built a custom theme based on another person's design. He uses both the excerpt and ...
0
votes
0answers
7 views

Include inside sidebar

Is it possible to include a file inside or inbetween items in a sidebar? Here are the two functions being called: <?php get_sidebar(); ?> <?php get_template_part('testimonial-box'); ?> ...
0
votes
0answers
9 views

How do display gallery attached to the custom post type

I have a custom post 'event'. For each post there is a gallery attached. On a main galley page i am displaying featured images from each post . Now i want that when person clicks on this featured ...
0
votes
0answers
5 views

“load-scripts.php” hangs and times out when plupload is requested

I have a perplexing problem with Wordpress. When pages under /admin/ loads "load-scripts.php" with "plupload" as one of the arguments, it hangs for ever. The "Add New Post" page is one such page. For ...
0
votes
1answer
10 views

Include add_post_meta in a plugin

I am trying to call add_post_meta() from a plugin I have created. The plugin acts as a payment gateway for WooCommerce. This all works fine however I need to fire off the add_post_meta() at the end ...
0
votes
0answers
10 views

$args Orderby The number

I have this code $cat_args=array( 'include' => '42,210,21', 'orderby' => '42,210,21', 'order' => 'asc' ); $categories=get_categories($cat_args); foreach($categories as $category) { ...
0
votes
0answers
3 views

wp_editor content not being saved when used in a theme customizer option

I am replacing one of the default Customize options for the Formation theme (https://wordpress.org/themes/formation) in order to add the WYSIWYG content editor to it. I've succeeded in removing the ...
0
votes
0answers
4 views

Developing paid membership with wordpress [on hold]

I'm developing a wordpress site which will use multiple membership levels including paid memberships. I need to figure out how to do following: - Assign Membership level (I suppose this could be a ...
0
votes
0answers
9 views

Display only certain content to users in my settings

I'm trying to create a simple client portal without much additional functionality, but I need to set up wordpress according to the following information: Split users into roles / categories - ...
0
votes
0answers
13 views

Register / Enqueue Scripts [migrated]

I am trying to be neat and put all JS into .js files and register and enqueue them. So far I have 'great' success doing so. I have in my functions.php of my theme: wp_register_script( 'myscript', ...
1
vote
0answers
12 views

How to set a custom path, for ajax image upload folder in admin?

I am coding my first Wordpress plugin that handles some data for a custom (shop-like) post type. It also has an image uploader within a metabox, where you simply drag in your images and it ...
0
votes
0answers
2 views

Processing form post data using database queries to construct custom query string

I have a form on my wordpress site. On form submission I want to: 1) Capture the form data 2) Run database queries using these data 3) Process the results and use these to construct a query string 4) ...
1
vote
1answer
34 views

Use is_category(), is_tag(), … in functions.php

I want to check in functions.php if actual page is a category page, tag page, ... but the functions to check it (is_category(), is_tag(), ...) doesn't seem to work, as this condition: ...
0
votes
1answer
18 views

Update user meta array using foreach

I have two arrays consisting of keys and values: Array consisting meta keys: $user_meta_fields = array ( 'first_name', 'last_name', 'job_title', 'college', ...
-1
votes
0answers
11 views

Woocommers my account and received order mail attributes order problem [on hold]

I'm using Woocommers plugin. And I wand more fields so using Gravity form. Now single product, cart,checkout Page product attributes order showing fine(first default woocommerse attributes then show ...
0
votes
0answers
5 views

Renaming CPT slug when the user access a page from one specific taxonomy

How do I rename a registered CPT slug when the user access a page from one specific taxonomy? I have a custom post type called /package/ and it taxonomies /america/ /europe/ /asia/ /hotel/ An ...
0
votes
1answer
9 views

.htaccess regex for redirect subdomain to root domain & redirect old permalinks

ok, i have at site a blog.mysite.com, and recently migrated all content to a new wp install at mysite.com. i want to redirect all of the posts from blog.mysite.com to mysite.com and also account for ...
-1
votes
0answers
11 views

Woocommerce move related products within single product page [on hold]

I'm wondering how I can move the related products div to a different area within the page, to wherever I designate; essentially I am trying to move it outside the main content div. I don't actually ...
0
votes
1answer
12 views

$wpdb select date range of posts

0 down vote favorite Using this SQL query to sort users by how many votes(meta key) their posts have received. <?php global $wpdb; $results = ...
0
votes
0answers
5 views

How to filter user list by role on page template

The template below displays a directory of restrict content pro users. It works just as it should. I'd like to now filter these results based on custom role (let's say "member"). I thought I could add ...
0
votes
1answer
17 views

Can't output the number 0 in widget

I have an input box where a user can input a number and then that number will be outputted into an html page. It all works fine except when you enter in the number 0 it doesn't output anything but it ...
0
votes
1answer
8 views

Why does Wordpress Heartbeat login not refresh the nonces?

Here's an interesting experiment: Go to wordpress plugins listing page, notice the activate, deactivate links all have a nonce part in the request. In a second tab, log out of the site, and go back ...
-1
votes
0answers
9 views

Tooltips plugin needed for displaying Heartstone's card [on hold]

I want to build a Heartstone website and one must-have feature is to display a tooltips of a certain card like in example below. ...
2
votes
0answers
16 views

Send Data to Wordpress from kiosk

I need to get a data from kiosk (think specific ATM machine) to wordpress database. Kiosk service providers told me to give them Gateway URL and Request format to send data. Im stuck on this, I dont ...
-1
votes
0answers
8 views

How to get category name by language using q translate [on hold]

I'm developing a multi language site and I need to make some ajax calls to show the info of the categories, I´m trying to achieve that when I select a category the loop display the category name ...
0
votes
0answers
17 views

Define specific color for each category_post

I'm looking to achieve something quite special and I can not manage to see where should I start, I need the same menu system has this website ( which is done with wordpress also, using reverie ...
-1
votes
0answers
9 views

How to modify this plugin to update if user changes role

function WP_members_list_get_users_by_role($r) { global $wpdb; foreach($r as $v) { $x .= empty($x) ? " $wpdb->usermeta.meta_value LIKE '%$v%' " : " or $wpdb->usermeta.meta_value LIKE %'$v'% ...
0
votes
0answers
8 views

Wordpress Site access from other machines on same network

I developed a Wordpress website on my local computer using 'Wamp' server. I'm now trying to put it on a local server at our work so that others can look at it / access it from their work stations. We ...
0
votes
0answers
22 views

Wordpress list child pages of custom post type

Im stuck on this and any help would be appreciated. Say there is a parent page called "Stuff". And Stuff has several pages under it. Stuff more stuff more stuff1 more stuff2 It has no children ...
-1
votes
0answers
7 views

A Shortcode Within a Shortcode, Nested shortcode? [on hold]

Problem 1 People flagged this as a duplicate on this site. I don't see this problem anywhere else. Problem 2 - My actual problem I have a plugin called WP-Filebase ...
1
vote
1answer
14 views

How to alert users when new posts appear under search query?

I have been hunting the web for days for this feature, and I am kind of surprised it's so hard to find / nobody really talks about it! I have a Wordpress site with a custom post type that can be ...
0
votes
0answers
10 views

One query to get posts and their taxonomy terms

I am building a map of posts and taxonomies to do some more intensive processing later on. Right now I am querying the posts with WP_Query and iterating over each one to get their taxonomy terms and ...
1
vote
1answer
19 views

Add Div to Comment Form

I have some code that displays my comment form and my custom validation, what I'd like to do is add a div right underneath the title, but I'm not sure how to do that because that code is generated... ...
-2
votes
0answers
9 views

WP Slider seems to be flickering on the first image every time page loads? [on hold]

It seems like the WP Slider is flickering every time the page loads... Any suggestions on how I can fix this? Here is my website:
0
votes
0answers
9 views

how to make separate category term archives by post type

I've searched around, and many others are struggling with similar questions that don't seem to have been answered well. So please help reduce this misery! Suppose you've got an off-the-shelf ...
0
votes
0answers
7 views

When I Use function wp_insert_term() function it gives me Invalid taxonomy object

if(isset($_REQUEST['review_add'])){ $rw_es_name = $_REQUEST['rw_es_name']; $rw_cl_name = $_REQUEST['rw_cl_name']; $rw_cl_email = $_REQUEST['rw_cl_email']; $rw_cl_review = $_REQUEST['rw_cl_review']; ...
0
votes
1answer
10 views

Change Permalink to Value of Custom Field

I modified this code to use for a basic useful link library, I found the code at http://stackoverflow.com/questions/8643508/how-to-group-articles-by-tags/8645453#8645453. <?php $args = array( ...
0
votes
0answers
13 views

Wordpress ajax works on FF but not on IE & chrome

I have the following code <a href="#" class="loadmore centered" page-data="1">Show More</a><script type="text/javascript"> jQuery(document).ready(function($) { ...
0
votes
0answers
13 views

Page and Post Links broken but permalinks and .htaccess are good and static sub pages work

Wordpress version = 3.9.1 Ubuntu = 14.04 Apache = 2.47 Mysql = 5.5.38 I updated my Ubunutu install recently, and now I find that the pages and posts are not accessible on my Wordpress site. I have ...
0
votes
0answers
13 views

How to get the link of each category? [on hold]

I have tried this code: <?php $cats = get_categories(); foreach ($cats as $cat) { $cat_id = $cat->term_id; echo '<div ...
-1
votes
0answers
28 views

A ShortCode Within a ShortCode. INCEPTION [duplicate]

Problem I have a plugin called WP-Filebase https://wordpress.org/plugins/wp-filebase/ & http://wpfilebase.com/, which allows a user to upload media and it has a shortcode to allow the user to ...
0
votes
0answers
12 views

Looping Next/Prev Link for custom post type

Strange error with custom post type next/prev. Trying to ge tthe first post if youre on the last one and the last post if youre on the first one. The posts per page is set to 100 but it seems to only ...

15 30 50 per page