0
votes
1answer
7 views

meta_key and meta_value not working together

I am trying to filter the loop to find posts that have a meta_key with a specific meta_value. I've looked at the Codex, and I've tried the following with no luck: // No results $args = array( '...
0
votes
0answers
2 views

Wordpress site with embedded menu - gives You don't have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server

I've inherited a website which has a menu structure that is not working. he developer built a site at huge expense but has then left them with a partially working site. It is a WooCommerce site with ...
1
vote
3answers
849 views

Pagination: /tags/tag_name/?paged=2 gives a 404 error

I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use /tags/...
0
votes
1answer
7 views

How to loop over wp_get_themes() and create an array of themes name

So wp_get_themes() returns an array of objects : Array ( [WpAngular] => WP_Theme Object ( [update] => [theme_root:WP_Theme:private] => /home/love/Web/web/...
0
votes
1answer
10 views

How are readers authenticated for leaving comments?

I'm thinking of creating a WordPress blog, not on WordPress.com but just using WordPress on a hosted website. I would like to allow comments on the blog, but was wondering in what way are commentators ...
-1
votes
0answers
5 views

Instagram post embeds don't show image

http://coletrane.co 3rd post down, shows hashtags, but not images. Console Dump: JQMIGRATE: Migrate is installed, version 1.4.1 chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js ...
3
votes
2answers
36 views

Trash bin for categories

Today I accidently happend to delete my category right after I've noticed there is no trash in categories. I wonder is there any way to include trash bin for it? I've made a little research over a ...
0
votes
0answers
16 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
4
votes
3answers
3k views

wp_list_table search box does not show

I'm using wordpress 3.8 and a custom class derived from WP_List_Table. Why is there no search form? My code in plugin class: function __construct() { ...
0
votes
2answers
14 views

No Object Properties sending form through AJAX

I'm using a Using modal window with + form to change the profile avatar. Like the following (functions.php): add_action('change_avatar', 'edit_avatar_function'); function edit_avatar_function($uid, $...
0
votes
1answer
9 views

jQuery plugin not loading

I am trying to use the below function to enquue 2 scripts (one internal, one external). The internal one ('custom_script') is working, but the 2nd one ('formValidation') isn't (I get a 'validate() is ...
1
vote
1answer
20 views

Conditional Gravity Forms filter in WordPress Multisite

I'm using this technique: http://stackoverflow.com/questions/27323460/how-to-label-payments-in-gravity-forms-paypal-pro To add comments to the paypal comments field from a gravity form. However, it's ...
0
votes
1answer
5 views

how to add custom wp_nav_menu class css selector to ul and a tags?

crafting a theme from finished html/css markup and wonder how to wrap a tags in my custom class? With ul wrapper this is works: wp_nav_menu( array('menu' => 'menu-...
0
votes
1answer
1k views

Unable to locate WordPress Content directory (wp-content)

I have tried to update my plugins in wordpress-admin but for some reason i am receiving an error "Unable to locate WordPress Content directory (wp-content)" I have checked on my server and the folder ...
0
votes
1answer
20 views

How to add custom variable in url without redirect?

I'm trying to add a local variable to my URL. As an example I have this URL: mysite.com/my-page-name/ And I want to add 'en' variable into it and leave the page working properly: mysite.com/en/...
-1
votes
0answers
6 views

difficulties creating Houzz like gallery page

good day wordpress fellows!!! I’m an architect designing my own website, so far, I short of Gallery page. I want nothing but almost similar Gallery as houzz gallery. it’s been 3 months trying to ...
-1
votes
1answer
10 views

How to avoid conflict between plugin and its edited version?

I currently use a WP pludin, let's name it "PopUp_WP". I downloaded its opensource code. Then edited/customized lightly that code. Next, I want to disable "PopUp_WP" and add "PopUp_WP-edited" to my ...
0
votes
0answers
5 views

How can I get just the title of a custom post type based on the date custom field?

I'm converting a closed CMS site into a WordPress site and they have a good "plugin" to show just the title of the Lunch of the Day on the front page (see http://sirkanleipomokahvila.fi) and the ...
0
votes
1answer
665 views

Customize Facebook's sharer.php to pass metadata of wordpress post (thumbnail and title)

I created FB Share button for wordpress post but it does not fetch the metadata from the post. I would like get the thumbnail and the title of the post when clicking share button. Here is the code I ...
0
votes
2answers
117 views

Add a user to a specific blog when they register?

I've setup a WP MU site and I need to know how to sign up a user to a specific blog when they register. As it is now, if a visitor is visiting a specific site and they click the register button they ...
0
votes
0answers
12 views

How to have different sized dashboard widgets simultaneously

I would like to have different size / width widgets in dashboard, not restricted to one column or two column but one full width and another half etc.. 1,2,3,4 simultaneously. Any ideas how we can go ...
-1
votes
0answers
8 views

Display individual fields from Gravity Form

I've created a Gravity Form with 8 fields, all of them numeric. I want to have full control over each field, so I don't want to use the function for embedding a field. Is there a function for ...
0
votes
0answers
13 views

Wordpress redirecting after login to /wp-admin

I have some troubles with my custom login. I got alwayas redirect to /wp-admin but I want to get back to the same page. I've tried some solutions around google but nothing realy work for me. So her is ...
-1
votes
0answers
18 views

How to Hide a Particular website page URL from Search engines?

I don't want these links to be shown while searching in Google. How can I achieve this in WordPress? I have tried with Disallow in robots.txt and it's not working.
2
votes
1answer
799 views

Ajax post filter by taxonomy

I want to make a filter width more than one tanonomy width ajax and jquery, The demo i want to code is: http://gycweb.org/resources/ I have tried to code with this demo: http://dinhkk.com/demo/...
0
votes
1answer
63 views

How can I serve a text file at a custom URL

I have a WordPress site installed at the root of the webserver: / I want to serve a text file from here: /.hiddendir/secondlevel/textfile I've created this file and directory on the server at ../...
-1
votes
0answers
14 views

How to show map using the following code?

I am using following code to show map on contact page.But it is not showing up.How can I resolve this problem? add_filter( 'rwmb_meta_boxes', 'your_prefix_map_demo' ); function your_prefix_map_demo( ...
1
vote
1answer
795 views

Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites

I have a custom 404 page, but dont want serve it for every broken asset that may crop up. Instead I want to just serve the Apache 404 as its much faster. I've found the following htaccess rule that ...
0
votes
1answer
13 views

Add theme templates for child categories into the template hierarchy

in my site i have many category and subcategory (child category) say like my one category name Printing - 4 color - 2 color - offset print Exmple i want when visit 4 color category page it ...
20
votes
4answers
13k views

Check if we're on the wp-login page?

How can I check if the current page is wp-login.php or wp-signup.php ? Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?
1
vote
1answer
24 views

post expire after x days

I want to create a code snippet for expiration of post after x days from the post published date, I tried with this code but I always displays the true condition, what am I doing wrong? $pfx_date ...
1
vote
3answers
2k views

How can I track active users of my plugin? and why doesn't WordPress.Org offer this?

It seems every major app platform from Android to iOS has great stats for developers. However, if you publish a plugin via WordPress.org you are not allowed to include any 3rd Party tracking code (for ...
0
votes
1answer
14 views

Adding fields to attachment - only shows when inserting new attachments

I'd like to add two custom text fields for image attachments to posts (images inserted into the content of a post). Second I'd also like to remote some of the default fields like caption and ...
1
vote
1answer
10 views

How can I create a list of page titles from custom meta values?

I want to associate pages with other pages by using custom meta values. For one page, I want to associate two other pages, so I create a custom meta value with the key Procedure and the value of the ...
-1
votes
0answers
3 views

Sync Event Calendar in Multisite

I am working on a multisite where we have child sites for Event Organizers with Event calendar pro installed, and the main site. I am looking for a solution to sync the Event Calendar from the ...
2
votes
2answers
455 views

prevent post to have multiple categories in my plugin

I'm writing a plugin, I want to prevent posts have multiple categories (i.e same product having category "Samsung" & "Apple"). Any idea on how to use some actions/filters to achieve this using my ...
2
votes
2answers
765 views

wp_delete_attachment doesn't delete images in wp-content/uploads/

My function lets users delete their uploaded images in the front-end. However, they're only deleted in the Media Library. That means that they're still in wp-content/uploads/. public static ...
1
vote
1answer
56 views
+50

Force WordPress, themes & plugins into using defined sizes

Many users do not compress or resize their images before uploading them into a post, so source images can often be a lot larger than the settings in /wp-admin/options-media.php. Many theme and plugin ...
0
votes
0answers
11 views

Question On Interactivity Help [on hold]

I've come across a roadblock because I'm trying to create something interactive, I don't know much coding skills so I'm using the best I can with plugins. Simply said, I'm trying to do the following: ...
0
votes
1answer
23 views

Category Name and Slug field need to be the same otherwise it breaks category pages

On our WP install we have Topics pages which pull together any content which has been tagged with that topic. Standard. When we visit the topic admin page and edit the Name field (so it's different ...
-1
votes
2answers
22 views

How to register HTML data-accordion as an allowed attribute in KSES [duplicate]

Does anyone know how to register data-accordion as an HTML attribute in KSES? I've tried to use the codex but is not specific enough to tell how this is done. Thank you
-3
votes
1answer
10 views

Woocommerce - charge shipping for each item individually? [on hold]

If someone wants to buy two of the same red hats, the shipping cost will be added twice. rather than one shipping price for the whole order, the shipping will be per item. if there are 5 items, the ...
0
votes
0answers
11 views

wordpress wrap every 3 posts in a div after the very first post in a loop [duplicate]

I want to add every 3 posts in my index.php file in a row div but I would like to exclude the first post so that I can style the first post differently. I currently have the loop working for every 3 ...
0
votes
1answer
2k views

How to add upload field in a custom taxonomy?

I have a custom taxonomy and I want to add a custom field inside , OK that's seems to be easy but the hardest part is when I want to add a file input type the enctype="multipart/form-data" I ...
0
votes
1answer
414 views

Trying to use wp_set_object_terms while supplying an array for both term id, and texonomies

I'm trying to use wp_set_object_terms ref : http://codex.wordpress.org/Function_Reference/wp_set_object_terms while passing array for both the terms and taxonomy for some reason i keep getting : ...
3
votes
1answer
186 views

Authoritative answer on which boots first - Plugins or Themes?

I can't seem to find anywhere in the WordPress documentation an authoritative answer on the question on whether a WordPress plugin boots first or whether a WordPress theme boots first. I need to know ...
0
votes
0answers
11 views

WordPress plugin checkbox check help

I am currently trying to learn how to make a fairly simple plugin. However, I am trying to make it a little more complicated and streamline the code as I go. I am currently trying to make an array of ...
2
votes
3answers
376 views

Sticky posts on home page, search, tag and archives without plugin

I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below. function wpb_latest_sticky() { /* Get all ...
0
votes
1answer
14 views

Search: display all found matches inside post

I'm working on a custom search where I'm filtering results using custom taxonomies and categories. The search works but on the results I want to display every match inside the post, for example if I ...
0
votes
1answer
16 views

searching for members in wordpress

I have custom fields setup in S2MemberPro, lets say they are these: memberid phone referredby I want to search the custom fields if searching those fields, and if searching the normal fields like ...

15 30 50 per page