0
votes
0answers
5 views

Get post attached in sequence

I'm trying to do a reader, that will take images that are attached to the post.Kinda like a comic book reader, which has a button to the next image. However only saw snippets that show to catch the ...
1
vote
1answer
28 views

Check for dependent plugin and if false dont activate plugin

I am creating a plugin for WordPress and this plugin depends on another plugin with a specific version. If I enable my plugin without dependent plugin there are fatal error. Is there a way to check ...
0
votes
1answer
12 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
0
votes
0answers
11 views

Remove Category from Menu link

I am new to word press and want to remove category from menu link. Example: When i click Entertainment page redirect to http://khabarchar.com/category/entertainment/ I want to remove category from ...
0
votes
1answer
4 views

How can I show taxonomy's hierarchy on a dropdown?

I am using realty.fearlessflyer.com theme on http://www.muranghotels.com and would like to show area in hierarchy, is it doable? Thank you.
0
votes
3answers
450 views

Restrict custom post type view by user role

I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles. Is there a straightforward way to ...
0
votes
1answer
11 views

Capturing /page-name/[0-99999] in both template and number

Apologies if this has been answered already - I have singularly failed to word my question in a way that Google can help. I'm trying to create a page that acts as a base URL for a range of items with ...
1
vote
1answer
12 views

Hook an action when a transient is deleted ? Can't get it to work!

I'm working on a plugin, and it caches a remote page when requested. The file is created with tempnam(). I save the path of that cached file in a transient, using the transient API. Once the ...
0
votes
1answer
8 views

How to display the number of posts in a category using WP Query

Just a quick one but I am stuck in doing this. I am running a WP_Query for a category and and want to know how to display the number of posts in a category using WP Query! This is the start of my ...
2
votes
1answer
515 views

Custom post types not imported properly

I've registered a custom post type: function create_gallery_post_type() { register_post_type( 'sim_gallery', array( 'labels' => array( 'name' => __( 'Sim Gallery' ) ), ...
0
votes
1answer
803 views

Success message in comment form

I am using wordpress 3.8. I am using comment_form(); I need to display a success message on successfully posted comment on blog. How to do this?
5
votes
1answer
166 views

Content hooks vs User hooks

This is more of a theory question than a question with a direct answer. I've been working with different actions for firing functions when a post is updated or deleted and when users are updated or ...
1
vote
1answer
357 views

Replace woocommerce | (pipe) separator in product variation to , or another character?

How to replace Woocommerce | (pipe) separator in product variation to , or another character? I use Cyrillic keyboard layout and there is no pipe symbol. To enter that symbol I have to switch to ...
0
votes
0answers
4 views

Wordpres 4.2.1 Permalink issue russian

i'm helping a friend to solve a problem on a website. That website is multilanguage (italian - english - russian), with default permalink all website works correctly, with pretty permalinks ...
-1
votes
0answers
29 views
+100

Showing all data when no metadatafilter is active

I'm trying to understand how metadatafilters work. I've come quite far I think, but Right now I have a final problem. If a metadatafilter is selected, my page shows results fine, but I really want ...
0
votes
0answers
19 views

Weird space in footer only in single.php when there are comments?

I have an extremely weird problem and I cannot figure out what's going on. I REALLY hope someone here might have a clue or else I don't know what to do anymore. So, there's a weird space gap in my ...
3
votes
1answer
25 views

What to use instead of wp_kses() in user output

I need some help here. While developing a theme, I want to make sure there are no security issues. So all dynamic data must be correctly escaped for the context where it is rendered. I know how to ...
0
votes
1answer
484 views

Multisite wp-admin goes to blank screen after forwarding URL

i have wordpress multisite setup on my LAMP here at home (static ip address) Using my ip in any browser it seems to work flawlessly (i have four subdirectory network sites running on it) This evening ...
-1
votes
0answers
13 views

How Do I make site-description stay in the same position when making it to a smaller size? [on hold]

http://abraham-accountants.co.uk/ This is the website #logo .site-description { float: left; font-size: 2.5em; font-weight: bold; color: #004488; font-family: 'Bitter', Georgia, Arial, ...
1
vote
2answers
130 views

Rewriting 'rewrite' slug for custom post type used by plugin

quick question: I'm using a plugin that creates a custom-post-type with the rewrite slug /projects/ So myurl.com/projects/single-project I want to to rewrite `projects/ with 'rewrite' => ...
-1
votes
0answers
10 views

i need Unique ID in gravity form

I made many form http://premium-writers.com/contact-us/ with help of gravity plugin ,but i need Unique ID like http://gravitywiz.com/documentation/gp-unique-id/ were every form submitted generates ...
1
vote
1answer
860 views

How to set the jpg image compression for specific thumbnail sizes?

This question was asked on Set JPEG compression for specific custom image sizes and answered very nicely by Ahmad M I'd of course comment to that thread but I don't have 50 point reputation... The ...
0
votes
1answer
11 views

WP Admin Bar - Get current theme name as custom menu title

I wish to echo the current theme in text in my WP Admin Bar sub menu. How would I go about display a snippet of PHP inside the 'title' => 'php snippet here', ? ...
0
votes
0answers
11 views

Making a frontend posting form with file upload

I've spent the last few hours searching and trying different ideas to no avail, so I thought I might ask for a bit of help. I'm wanting to make a form that allows registered users to post from the ...
0
votes
2answers
405 views

List all taxonomy terms / Show links if posts are attached, else names

I'm looking for a way to list all the terms from a custom taxonomy. Only the terms that have posts attached to it should have links to the archive page. If there are no posts attached it should only ...
0
votes
1answer
9 views

custom metabox nonce verification fails

I'm adding a metabox on a custom post type and my nonce-verification fails. I'm not really where to look for why it's going wrong. Can anyone point me in the right direction? Here's my code: function ...
1
vote
2answers
440 views

Wordpress most popular post own code, per week

The plugin Most popular posts doesnt support WPML and therefor I have tried creating my own. I have found this tutorial in creating your own code for showing the most popular posts on my site. ...
-3
votes
0answers
22 views

Wordpress widget in sidebar based on post tag

I have a website which provides information of listed companies in the stock exchange. We post articles, announcements related to these companies on a daily basis. We have a page for each company, ...
-1
votes
0answers
5 views

Refresh Wordpress Website Every Minute and reflect in Analytics

I am a newbie to wordpress. I want my website to auto refresh every minute. I also want the refreshes to be counted in the analytics (ie; as pageviews). I have seen this being used in a PHP Website. ...
0
votes
3answers
24 views

loop query exclude meta_key with meta_value

Hi I use a loop like this: // show all active coupons for this store and setup pagination $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( array( 'post_type' => ...
0
votes
4answers
433 views

How to Echo Metadata Value in Currency Format

I have a Custom Post Type with a Metabox and an input Text field for adding "Price" to the posts. Now I would like to display the input value which can be like 49 or 59 like 49.00 or 59.00 so far I ...
0
votes
0answers
26 views

Function is creating too many queries

I have code that displays a list of categories and orders them by the number of ACTIVE posts in the category. This is determined by comparing the custom field of due date against the current date. If ...
2
votes
3answers
644 views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
0
votes
2answers
398 views

How to add a custom page template selector to a custom taxonomy?

I am trying to add the custom page template selector that can be found in the "edit page" screen for pages to a custom taxonomy. The custom taxonomy is product_cat created by WooCommerce. I am using ...
0
votes
1answer
11 views

How can I set a dynamic value for post_updated_messages based on return value of post_updated?

I'm familiar with how to set custom messages for post updates using the post_updated_messages action hook. This question is slightly different. I have a function/action hook on post_updated: ...
0
votes
2answers
441 views

(Beginner) Need help installing Wordpress on my VPS (Virtual Private Server)

Introduction: (I will remove this later of course) Hi. I think it would be smart for me to ask the professionals how I can best install WordPress on my VPS so that I don't run into problems with my ...
0
votes
3answers
910 views

Use get_term_children to get the sub category of a parent category for the current post

In my WooCommerce theme I've created a root category: 'Brands' then for each product I've added it's brand as a sub category to the 'Brands' parent category. On the product page I want to display the ...
1
vote
0answers
14 views

How to compare two posts including their meta fields on a scalable base?

I have set up a wordpress in a way that posts can be cloned and be altered by a different author. whenever this is the case, i want the administrator to be notified via an additional tab in the ...
0
votes
1answer
387 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? ...
0
votes
2answers
16 views

Get Current user email as a return string value

if(strpos($query, '%get_email%') !== false){ $query = str_replace('%get_email%', get_the_author_meta( 'user_email' ), $query); } Okay so am trying to make a MySQL query and in the ...
1
vote
1answer
1k views

Load posts into sidebar and paginate via ajax?

Is it possible to paginate, or load the next / previous posts in the sidebar without messing with the entire page pagination? Such as AJAX? Right now I'm querying custom post type posts to load the ...
0
votes
2answers
14 views

Wordpress 4 invalid username special charachters issue

I have some danish users that uses special chars like æøå and they can't log in to my wordpress blog. I tried on a fresh install on 4.2.2 and on 4.1.5 and it did not work, for example Andrew ...
1
vote
1answer
12 views

How to Internationalize Wordpress - Extract strings with textdomains, per textdomain individually

I spent several hours searching, and have not found a solution, how to extract Strings dedicated by Textdomain from a PHP File (in a wordpress plugin): In my plugin and theme I use for example ...
0
votes
1answer
402 views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
1
vote
2answers
1k views

Hosting WordPress on AWS EC2 using CloudFront Dynamic Content Origins for page content

Is it possible to completely host WordPress on AWS with EC2, S3 and CloudFront Dynamic Content Origins, in the way that WordPress is currently built / architected? Further Details: I would like to ...
0
votes
1answer
19 views

Add option for administrator to submit link

I created a theme, and the theme have social icons in the header, now i want a theme feature, where administrator can link their profile to social icons that I have on my theme. I researched on this, ...
0
votes
1answer
24 views

How to move menu next to left of the search box?

I use Woocommerce plugin and StoreFront theme to build my demo website at http://52.74.97.64/wordpress/ I want to move the current menu to another place - on the left next to the search box on the ...
0
votes
1answer
17 views

Wordpress search seems to look into permalink (which is bad)

It looks like when you search for the domain name in the wordpress search box, you get all your content listed because the domain name is in each permalink. I've tried many things, but it seems to be ...
1
vote
1answer
434 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
1answer
2k views

Using AJAX to run SQL statement and populate dropdown

I am trying to create a search where the user selects two different bits of data from the database and it then prints some results that meet requirements. I know I need to use AJAX, or something ...

15 30 50 per page