0
votes
0answers
8 views

Element on page, is fixed position relative to parent want it relevant to body

I am adding an overlay element on a page using a fixed position. The actual css is .overlay { width: 100%; height: 100%; position: fixed; top: 0; right: 0; ...
0
votes
0answers
14 views

Modify request query string before plugins

I have an issue where a plugin allows some behavior I don't like. Basically, I want to grab and modify a request query string before the Ultimate Member plugin processes it. Basically if someone isn't ...
0
votes
1answer
22 views

Plugin translation not displaying

I have written a plugin to be translation-ready, and I have written a translation. As far as I can tell, the .mo files for the translation are loading correctly, yet the plugin is still displaying ...
0
votes
0answers
14 views

Ordering by custom post meta key

I'm using the plugin WP Job Manager, and have a custom field with the meta_key "rating". I want to be able to order listings by rating, using "orderby". Normally for posts I imagine it would be ...
1
vote
1answer
18 views

Custom Post Type Capabilities — Enable Edit, Disable Create and Delete

I'm trying to configure capabilities for a custom post type. I want to enable editing, but disable creating and deleting. create_posts cannot be set to false unless delete_posts is also false, but it ...
0
votes
0answers
10 views

Filter woocommerce products with product type

I added new product type like here http://wordpress.stackexchange.com/a/120220/66786 Now I want show just that type products here is the my query $query_args = array('post_type' => 'product' ); ...
0
votes
0answers
6 views

Problem with Duplicate Meta / tag description in Webmaster Tool

Hope you are fine and in a good health. I owned a blog www.ismag.com and today when I check my website in Google webmaster tool I found these errors in html improvement. I am using WordPress SEO ...
0
votes
0answers
8 views

In edit post show categories as select instead of checkboxes

In wp-admin edit post categories(taxonomies) are listed as checkboxes. People can select multiple categories. That is exactly what I don't want! I want the categories to be listed as an ...
0
votes
0answers
10 views

Woocommerce variable product does not support image against each variation [on hold]

In woo commerce when we upload a product and make it a variable product.then for each variation it provides an option for image upload but when we select that option on front end it does not show that ...
0
votes
0answers
14 views

esc_url within iFrame

I'm building a WordPress theme. To improve security, I'm escaping any URLs, like so: <?php $background = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), '' ); ?> <div ...
0
votes
0answers
19 views

Best way to access variables in template markup

I am making my own mini OOP wrapper for working with wordpress themes. I have a main $settings variable that contains all of the information like definitions, scripts, menus etc.. I then pass this ...
0
votes
0answers
11 views

$authordata related posts by author

I created a widget to display related posts by an author but the code no longer gets the posts by author. I'm guessing something has changed in Wordpress and see some reference to the_author_meta but ...
0
votes
0answers
23 views

Wordpress tremendously slow after uploading too many products on Woocommerce

I use Wordpress (latest version, updated yesterday) + Woocommerce + Bulk Photo to Product Importer to manage my online photos selling agency. I upload a lot of photos taken during sport events and ...
2
votes
2answers
26 views

Shared table across network

Im currently creating a plugin that will read an xml file and import the data into 4 tables on a wordpress multisite. the tables are rather large, with ALOT of columns, so the post table is not ...
0
votes
0answers
7 views

Can I set a permalink that filters by three categories and a tag, and will be recognised for caching?

I run http://www.oldies.org.uk, a charity website for rehoming elderly dogs. It's been running on Wordpress since 2005 and has only recently begun using permalinks instead of the default query string ...
0
votes
1answer
15 views

What function publishes a post when you click the publish button?

I'm trying to track down an issue with a plugin. In vanilla WP when you are on the post edit screen (/wp-admin/post.php) what function is getting called to change the post status from draft to ...
0
votes
0answers
11 views

Bulk edit post content

How can I bulk remove pieces of content from all posts that contain it? I've tried doing it with a mySQL query but it doesn't support regexp in replace and I can only find my string with regexp - it's ...
0
votes
0answers
12 views

How to disable a Custom post type Feed?

I have been experiencing 404 errors in my Google webmaster tools reports , the errors come from this Custom post type feed URLS. I would like to deactivate them so they dont appear anymore in my ...
0
votes
0answers
17 views

%author% permalink for woocommerce

I have a multi-vendor website. I need to have the products permalinks set to, something like this: /author/product or /vendor/product Wordpress already has inbuilt code for /%author%/ but sadly this ...
0
votes
1answer
37 views

Clickable dropdowns - How do they work?

On my current project's theme there is a clickable dropdown-menu that opens, well.. when you click it. The website has a purchased theme from themeforest with a couple of required plugins, so I don't ...
1
vote
2answers
32 views

Exclude category by slug for for each loop

I am trying to exclude some categories from a for-loop. <?php $categories = get_categories(array('exclude' => 'apps, windows')); ?> <?php foreach ($categories as $category) : ?> ...
0
votes
1answer
42 views

Insert media while posting is not working with new wordpress update

Insert media while editing or adding post is not working since the 4.1.2 update. But I can upload media through media manager itself. I didn't change anything in the site today, only the automatic ...
0
votes
1answer
12 views

Filter custom post type by custom taxomony

I have several custom post types, each with one or more custom taxonomies. I'd like to add a filter for each taxonomy to the relevant custom post type edit screen, but my solution is not working. ...
0
votes
0answers
15 views

JetPack Plugin - Change Mobile Style Color

I'm using JetPack plugin to make my website to be mobile-friendly. I want the colors to look different when I'm using a mobile device to get into it, but I can't find something to let me do that. I ...
1
vote
2answers
48 views

Looping through posts per category gives same posts for each category

For a specific section on my website I loop through some categories and get the three latest posts in that categorie and list them. Like so: <?php $categories = get_categories(array('exclude' ...
1
vote
0answers
12 views

Custom filter function not working with Custom post type

I have custom post type "soto_property". I have made a custom filter to filter post listing according to used meta data named "operations". Here is my code- <?php add_filter( 'parse_query', ...
-1
votes
0answers
8 views

Get all Woocommerce products where attribute value matches something

I would like to create a page where only custom-made products are listed. I created the is_custom custom attribute on all my products with two possible values: yes - no In my custom template I would ...
4
votes
3answers
142 views

Better way to get tag stats?

I have over 4000 posts. I am trying to query all the posts and get the count of tags each post has and sum up posts count based on number of tags the post has in dashboard. The posts count shows up ...
0
votes
0answers
6 views

Got portfolio thumbnails on homepage. need to filter them using filters

All i'm trying to do is add a working filter to existing portfolio thumbnails (Its already there without excerpt or post title - as i wanted it) I've also got the filter terms on the page, with the ...
0
votes
0answers
4 views

Programmatically upload images from post's html source to media library

I have created many pages that were previously prototyped with plain html. I just copied the html source from prototype and pasted to the editor in text mode. The html source contains image tags which ...
1
vote
1answer
16 views

Are database queries created using WordPress filters protected from SQL injection?

I'm using the WordPress 'posts_where' filter (https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_where) to alter my queries as below: function filter_my_search($where=''){ ...
0
votes
0answers
19 views

Pass custom image on add to cart

I'm trying to replicate the behavior that this site has: http://pixers.es/fotomurales/hermosa-mujer-ejemplo-de-la-acuarela-59301559 As you can see you can select a certain portion of the image to buy ...
0
votes
0answers
12 views

wpdb->query and non-ASCII characters in given query

recently I'm dealing with wordpress and I find myself running a table creation query in a plugin through the function $wpdb->query (this wpdb class). Everything is fine until I put a non-ASCII ...
0
votes
0answers
21 views

How can I update Wordpress directly from the admin using ssh?

I have some difficulties on EC2 Amazon instance. I'm not able to update to the latest release of Wordpress directly from the dashboard admin, this caused security restriction. In the past, for ...
0
votes
0answers
15 views

Add a class to the genesis attribute entry [on hold]

How do I add a class to the genesis attribute entry? I'm trying to achieve adding a class to the article depending on which post/social feed it is using the get_terms taxonomy. My test post is being ...
0
votes
0answers
12 views

Using timber and twig but how do i create a search form but keep basic functionality? [on hold]

Making good progress using twig but keep hitting the occasional wall! How would i approach building a .twig version of the below? <form role="search" method="get" class="search-form form-inline" ...
0
votes
0answers
18 views

Autotitle for WordPress not works when i import the post in draft [on hold]

Autotitle for WordPress generate title when i am in "wp-admin/post-new.php" and i click any button "publish" or "save in draft" manually, but if i have many posts imported in draft mode without ...
0
votes
0answers
11 views

How can I display custom field of sub pages even if I'm on a sub page?

I'm doing like a navigation of sub-pages on a page with thumbnail generated from a custom field (ACF plugin). When I'm on the parent page and on a sub-page, I want the thumbnails to show up to list ...
0
votes
1answer
15 views

use post meta in add_meta_boxes action

Is there any way to use get_post_meta within a function called by the add_meta_boxes action hook? I only want to display the meta box if a specific post meta matches a regex, but so far, I have not ...
-1
votes
0answers
9 views

Contact Form 7 Php substr the value in the Message Body

I using the Mail 1 and Mail 2. On Mail 1 I want to send the card number that all number display. Example email: Card Number: 1234567890 But on Mail 2 I want to send the card number that last 4 digit ...
0
votes
1answer
18 views

Moving wp from a server to another, with different administrator

Hi a friend had a website made by a guy, now he asked me to make him a new website but he want me to add all the post and pictures he had on the old one. The problem is that the guy that made him the ...
0
votes
1answer
20 views

Update all images url imported from HTML pages

I have to copy content from different website. I copied whole webpage and paste it in my post. All works fine. I also get images in my post but they are still linked to older website. Is there any ...
0
votes
0answers
8 views

allowing user to add content, photos without giving access

Is it possible in wordpress to allow user to add content through editor and add some other elements like photos, country name, user name and email without giving admin access ? I want to make voting ...
-2
votes
0answers
26 views

Wordpress's WooCommerce Plugin compatibility with PHP 5.3 [on hold]

We have a web server that has PHP 5.3 installed and as per our clients requirement we need to use WooCommerce on the wordpress website . In the woocommerce 2.3.7 plugin page on wordpress site, its ...
0
votes
0answers
13 views

after_switch_theme not working in a class?

Here is my class (by way of example) after_switch_theme is being stupid and refuses to fire. class myPlugin(){ __construct(){ add_action('after_switch_theme', array($this, 'rewrite')); ...
1
vote
1answer
46 views

List only posts from specific category on category page

I wanted to ask if there is a shorter way then by checking each time if the post is coming from a specific category. As you can see the categories cover the alphabet, A B C etc and each time I check ...
0
votes
0answers
7 views

WordPress : Update old image_default_link_type to post

I have this code that update image_default_link_type option value to post. ans it work good for new post. But the old post i cannot update the images in old post to post link. How can do that ?? ...
1
vote
0answers
22 views

Removing Custom Permalink Structure for Custom Post Type

I'm using a custom permalink structure for posts, which is domain.com/blog/%postname%/. However, I have a custom post type called 'events', and I don't want to use the default custom permalink ...
1
vote
1answer
29 views

Can't understand $atts in functions?

I'm not sure if I don't fully understand the basics of functions in php or maybe it is WP convention that I am not sure of. My question is why use an argument in a function when it is not going to be ...
0
votes
0answers
8 views

Problems with wp_remote_get only when certain themes are active

I wrote a plugin that uses wp_remote_get to get some data. It works great on certain themes, and other themes it completely breaks down with the following error: Problem with the SSL CA cert (path? ...

15 30 50 per page