0
votes
0answers
2 views

ajax nonce verification failing

I have a voting system where a list of posts are printed out using an archive template. Each post's voting button has html data attributes containing the vote-id and the vote-nonce. When the voting ...
0
votes
0answers
5 views

Why my theme no translated in backend?

my function is: add_action('init', 'wan_load_textdomain'); function wan_load_textdomain() { load_theme_textdomain('mytheme', get_template_directory() . '/languages'); } this translates me in ...
1
vote
0answers
16 views

Why is there both a save_post and wp_insert_post action?

I just realised that in wp-includes/post.php, at the end of wp_insert_post(), both the save_post and wp_insert_post actions are called one after the other, with the exact same parameters: 3520 /** ...
1
vote
0answers
5 views

Redirecting users based on custom user meta

I am novice trying to use the following code: function my_login_redirect( $url, $request, $user ){ if( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) { if( 'cool' == ...
-1
votes
0answers
6 views

Lost data from variable after update product

I have problem bcs when I set value in dropdown list and refresh cart, product I lost this value. My code below: <?php if ($_POST['period'] == NULL) { $...
-2
votes
0answers
9 views

need some wordpress responsive issue help

i need to my blog page responsive with one line but its show three line article post...the css file/tag stay in this php file..here is the code for where i thing need to set medi screen...<article ...
0
votes
0answers
5 views

Embed a local page in to a post?

I've been trying to find a good way to embed a page from my domain into a WordPress page also hosted on my domain. My search brought me to a plugin called 'Advanced iFrame', but as you can see HERE, ...
0
votes
0answers
8 views

WP Meta Query at depth 2

I'm interested in doing a meta query according to some post data that doesn't exist at the first level of the post meta. In other words, I would need two or more keys to get to the variable I'm ...
0
votes
0answers
14 views

Server stressed by /feed

I'm debugging a website that my friend has hosted on a VPS that should be perfectly capable of handling a Wordpress installation that gets ~2m monthly visitors. During the last few months, his uptime ...
0
votes
0answers
11 views

Customizer JavaScript function

I'm trying to add loaders by customizer . The loader fadeout and then section background fadeout. I'm trying to add that by a postmessage function so that we can see the loader change in the ...
-2
votes
0answers
12 views

How to make multipages on one page? [on hold]

I want to do mulltipages on one page which like tabs on top of the page and every tab own its content thanks ^^
0
votes
0answers
5 views

Hide Frontend Video Categories from appearing for Users [on hold]

I want to hide the categories from the frontend because I don't want users to upload their videos anywhere, I want to choose just one specific category to let them upload to it but I don't know how to ...
3
votes
1answer
25 views

How to escape single and plural i18n text strings?

I've come across the esc_html_e() and esc_attr_e() functions which allow me to escape translated text strings. I'm now using these instead of _e() where appropriate. The _n() function allows for both ...
0
votes
0answers
9 views

Product filter for a catalogue on Genesis framework

What is the best way to set up a catalogue and be able to filter on products attributes, categories and tags in an efficient and elegant way? I've tryed everything I could think of: 1st Solution: ...
-1
votes
0answers
11 views

Run a query to convert bitweaver table syntax to HTML table format

I have imported content into WP from a wiki page that was using bitweaver...the format of the tables in the wiki platform are quite different and i wonder if there is a query i can run in phpmyadmin ...
2
votes
0answers
6 views

How to upload multiple images with WP_Customize_Media_Control

This question is specifically related to the WordPress Customizer. I am looking for a way to upload multiple images with the WP_Customize_Media_Control. It is easy to do this for metaboxes, but I do ...
4
votes
1answer
60 views

How to escape the single quote character in i18n translation strings?

How should I properly escape the single quote character in a translation string? I'm using it as an apostrophe. For example: __( '404. This isn't the page you're looking for.', 'textdomain' ); I ...
0
votes
2answers
17 views

Export only pages and posts with mysql dump

How to export only pages and posts using mysql database to database approach? More precisely: what tables should one select for dump (I suppose wp-posts and wp-post-meta ) is it safe to export only ...
2
votes
0answers
14 views

W3 Total Cache: use cache for request with ignorable query string

Currently W3 Total Cache use cached page only if query string is empty, the rule is: RewriteCond %{QUERY_STRING} ="" in this code (from .htaccess): # BEGIN W3TC Page Cache core <IfModule ...
0
votes
1answer
16 views

How can I Use 2 databases with one WordPress install

What I'd like to do is have the regular WordPress application run from its regular database, and then have a separate database for a game server which will hold all game data. What I need is to make ...
0
votes
1answer
12 views

Warning: Invalid argument supplied for foreach() in post.php

Just moved my site to another server and now I get this error: Warning: Invalid argument supplied for foreach() in /home/menta/domains/land.menta4u.co.il/wp-includes/post.php on line 1172 On ...
1
vote
0answers
13 views

Check if the value was set or is it a default value in Customizer with wp.customize API

When you check for a value of an option with: wp.customize.value( 'option_name' )(); You get a value even if it was not yet set. That is, if the theme is loaded the first time and the user hasn't ...
3
votes
1answer
36 views

How to preserve PHP modifications while upgrading WordPress?

I made a lot of custom modifications in the PHP code of my WordPress blog. Namely in: archive.php, blog.php, footer.php, functions.php, header.php, search.php To provide customized search results, ...
-3
votes
0answers
11 views

My link not open from twitter in mobile [on hold]

I have problem when any user open my site from twitter account in moblie, when click to any link, Its open into new windows but show him white page. But when open any link from desktop, Its open and ...
0
votes
1answer
14 views

Get WordPress page Id inside customizer

I'm trying to move to using the WordPress customizer more. I need to find a way to get the ID of the page the user is viewing in the window. I was wondering is this is possible in the customizer? ...
-1
votes
0answers
11 views

Css class in menu can't change

I want to add a css class for some menus under appearence ==> menu and i did it for some of them but there are some munus that can't be changed and i get a not editable css class for them by default ...
0
votes
1answer
9 views

Get the link of the first post of a custom taxonomy in a custom taxonomy list

Currently, I'm doing this using a custom field, but I would love for this to be automatic. Basically, I have a page that will list all the entries of a custom taxonomy, but I want the links of the ...
0
votes
1answer
8 views

SELECT SQL_CALC_FOUND_ROWS with wordpress search

When I make a search on my site no posts are retrieved and through wordpress debug I get this error message: WordPress database error: [Table 'theme_se.wp_comments' doesn't exist] SELECT ...
0
votes
0answers
16 views

Image from the single post wont show at facebook

I have a wordpress website. I made some changes into the php header file because of some troubles I was having with the facebook integration. I'm using videotouch theme. The problem is: When I post ...
-1
votes
1answer
28 views

How to string lines from the_content() hook in WordPress?

Inside my content-video.php template, I have the following codes: <iframe src="<?php echo get_the_content(); ?>" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen">...
0
votes
0answers
13 views

How to select N number of products and display it randomly in Woocommerce

I have a woocommerce setup with about 10,000 products, i would like to display all the latest products on the home page so that i can have N number of latest products from each PRODUC TAG displayed in ...
-4
votes
1answer
15 views

ACF select box css color change

i have a trouble with Advanced custom post i try to add select box "K dispozicii is "free" and "Obsazeno" is "occupied" and i need to change colors green for free, red for occupied here is the code ...
0
votes
0answers
8 views

Any Nextgen Gallery to WordPress importer?

Im trying to find a Nextgen Gallery importer to WordPress (default) gallery. I found some plugins and works well (like this: https://github.com/kovshenin/escape-ngg), but only with old tag system [...
-1
votes
0answers
30 views

Get the_content with formatting text?

I used this php-code to find all links. function url_to_link($text) { $reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; if(preg_match($reg_exUrl, $text, $url)) { ...
0
votes
0answers
16 views

Wordpress calls my plugin while trying to update Wordpress Core

I am developing my plugin right now, and I have faced with one issue. I tried to update my Wordpress core to the latest version but it shows me an error in my plugin. I think I doing something wrong. ...
-1
votes
0answers
7 views

Contact form 7 Datepicker, date range between 2 dates

I have used 2 date fields in my Wordpress contact form 7 - a start-date and an end-date. The fields are datepickers. When a visitor has selected a start-date i want them to only be able to select an ...
0
votes
0answers
15 views

Allow custom user to Publish, But Not Edit or Delete a custom post type

If I create a custom post type in functions of my theme like this: add_action('init', 'mail_register'); function mail_register() { $labels = array( 'name' => _x('Letters', 'post type ...
0
votes
0answers
13 views

Custom single post pages not using single-template even after flushing permalinks

I have moved my site from a local server to production however my theCommunity custom post types are not using single-theCommunity.php template. I have also tried flushing permalinks as recommended in ...
-2
votes
1answer
14 views

make default upload folder year/month/day wordpress without plugin

is there any way to change in code and make it when you click(enable) “Organize my uploads into month- and year-based folders. ” it to be default year/month/day ……… without any plugin.. Can anyone ...
0
votes
0answers
11 views

Configure .httaccess for wildcard SSL subdomain Wordpress

I have 1 domain (in public_html/maindomain) with a wildcard SSL (from CloudFlare) installed and I am creating a subdomain (in public_html/maindomain/subfolder). Both have a Wordpress installation. ...
0
votes
0answers
7 views

Special characters automatically converted in pemalink

In one of the WordPress installation, special characters in permalink is getting converted (PFA). How to allow special characters in WordPress permalink? If anyone had same issue please suggest.
0
votes
0answers
13 views

Hide pages + widget edit

I have 2 questions on this site i have this item i was wondering how can I make this item not show in the widget area or any other part of the site but still be accessible if some1 has the link to it ...
0
votes
1answer
20 views

Displaying Wordpress Parent field in child post

I want to display the title from a parent field within a single child post (these are custom posts created with wp-types). At the moment, all I seem to get is the title of the current post, and not ...
0
votes
0answers
5 views

remove option in variation product woocommerce

Hallo i have remove product option in woocommerce for simply product the option is "subscription" and then i have used this code add_filter('product_type_options', function($product_options) { ...
3
votes
0answers
11 views

Use override_load_textdomain for cache translation and improve performance

I have a multisite wordpress with multiple localized sites (es_ES, de_DE, it_IT). I want improve page speed by caching wordpress translation file. My code works (inspired by Tristan Darricau)! and ...
0
votes
1answer
22 views

wordpress meta value compare between two date

I want to check date between two year of birth. But my saved value is date of birth. Meta key "birth_date". Now I want to check value between years using year. My saved date format like "01/01/1995" ...
-3
votes
1answer
26 views

How to execute the “Visual Composer” code on a custom html page?

Visual Composer is an essential plugin for creating a website with Wordpress. I created an html page with Sublime Text without using the tools offered in Wordpress and without using Visual Composer. ...

15 30 50 per page