-2
votes
0answers
10 views

Hack and malware files issue

I am bearing a issue with my website This website hacked after restoring the backup again and again and also show malware files woringing ocasionally
-1
votes
0answers
20 views

Parse error: syntax error, unexpected 'var' (T_VAR)

I'm trying to upload a single image using the WordPress Media Uploader as mentioned on this page http://qnimate.com/adding-a-single-image-using-wordpress-media-uploader/ However, this function ...
0
votes
0answers
11 views

Display posts by combining multiple meta key

Basically a post is an event therefor will be displayed once or twice, depending on meta key. Every post has at least two meta keys $start_time_1 and $end_time_1. Let's say i have two posts, title: "...
-2
votes
1answer
19 views

Best Practice Jumbotron Image for WordPress ~ Responsive

I wanted to hear some feedback, What is best practice for showing a full size jumbotron image using Bootstrap inside WordPress? I recently launched my first site using the method below, It seems to ...
0
votes
0answers
6 views

Redirect main domain to www and https but not affecting any subdomains

I've tried a million things but it's been a nightmare. Mostly ending with the subdomains redirecting to the main domain or everything just not working in general. The client failed to tell me that ...
0
votes
1answer
19 views

WP Rest API - How to get featured image

I'm very new to this API, in fact I've only spent couple hours on it so far. I've done my research but cannot find anything about it... The issue is, I can't seem to get the featured image of a post. ...
0
votes
1answer
22 views

WordPress wp_enqueue_script only adds text to top of page source

All I'm trying to do is add some javascript to a WordPress theme I'm making. My functions.php file looks like this: function my_scripts() { wp_enqueue_script( 'jquery' ); wp_register_script(...
0
votes
0answers
7 views

Where can I see the typography of load_styles.php?

I am creating the wordpress plugin admin page. Here, I want to how can i use the elements' class defined in load_styles.php. After all, I want to see the image of sample element that has the class ...
0
votes
0answers
5 views

How to use Internationalized human_time_diff() function in Chinese?

Looking at https://codex.wordpress.org/Function_Reference/human_time_diff I'm using an English version of Wordpress. In my theme template, I would like to define custom text of min, hour, day, week, ...
0
votes
1answer
18 views

Excluding posts with certain value of meta_key keeping posts without that meta_key

There are solutions for this problem, but what I could found, all of them are from long ago. So I am looking for a solution (if there is any) considering recent updates. I have a meta key wpse_city, ...
0
votes
0answers
6 views

Custom taxonomy hide meta box but show in menu

If set show_ui false, this hide the taxonomy meta box and admin menu link both, how to hide only meta box? $args = array( 'hierarchical' => true, 'labels' => $labels, ...
0
votes
0answers
12 views

Sending Messages Back to the Template After Processing?

Is there an "offical" way to send a message back to the template after processing a form using add_action('admin_post') or similar for client-side feedback ? I was thinking of using the $_SESSION but ...
0
votes
2answers
13 views

wp_mail not sending emails

I have used WP-Mail-SMTP to setup the mailer on my WordPress installation. I have tested it by sending email to my private mail. I am now trying to send the form data using wp_mail() function[WP]. ...
0
votes
0answers
4 views

echo term custom taxomomy from id image insert into post

With this code I get all images urls insert into post: preg_match_all( '/<img .*?(?=src)src=\"([^\"]+)\"/si', get_the_content(), $allpics ); foreach($allimages[1] as $images){ $id_images = ...
0
votes
1answer
13 views

How to choose the content from a post which is in the right category?

I have a shortcode, which contains the post title. This shortcode loads in the frontend the content from a post. Thats works fine: function title_content($atts, $content = null ) { global $wpdb; ...
0
votes
1answer
8 views

WP_Query: Exclude hidden products from WooCommerce product list

I hope this is not too specific to WooCommerce. I have a nifty shortcode that displays a list of all my products with SKUs. However, it also includes products that I have published but have set the ...
-3
votes
1answer
18 views

Welcome Email Going to Spam

The user sign up welcome email is going directly to spam, Gmail says this email may not have been sent by ****@gmail.com Would setting up a domain specific email address and changing the site owner ...
2
votes
1answer
15 views

Sorting list of sites from multisite network using wp_get_sites

I have a loop that pulls in all sites in my multisite site network and loops through them to get variables located in their ACF options. Here is an excerpt from the code I am using: $stageurl = ...
0
votes
0answers
9 views

Save genesis widget contents from javascript

For a project I'm working on I need to create a front end editor, in which you can edit and save what is changed. We are working with the genesis framework, so the content is divided into widgets. As ...
0
votes
1answer
4 views

Require confirmation of current user's email before updating database and before send_email_change_email

I like the core ability for users to update their default "Email" field. For example username1 can edit their own profile and change their "Email" field from email1@example.com to email2@example.com ...
1
vote
0answers
8 views

Filter multiple custom fields Values with Check boxes

I create check boxes with name of custom field value. Here is 2 custom fields and every field have 2 type of values. need to show filter result of selected boxes?? every custom field have two type ...
0
votes
1answer
11 views

wp_nav_menu custom walker <a> class

So I'm learning about custom walkers and I've run into a few issues. I've got a custom walker set up. One issue I'm having is figuring out how to add a class to the <a> inside of the start_el ...
0
votes
0answers
9 views

Example code of updating a Wordpress post from a 3rd party using WP-REST-v2

I wish to update posts on my Wordpress site via a 3rd party mobile app. It is enabled to work with Wordpress REST API. Firstly, is it possible to update a certain part of a post/page via REST API (ie....
0
votes
1answer
26 views

I want to replace a word with another word in my entire WordPress theme

I have a WordPress freelancers theme and I want to write a function that replaces the word "freelancer" or "freelancers" with the word "creatizen" or "creatizens". I am a pure newbie so I would ...
0
votes
1answer
7 views

Update if post with specific title exists

I am trying to create a post, if it does not exist and update the post by its title if it exists. The title is unique, because its the users username. However, the update functionality does not work. ...
0
votes
0answers
7 views

How to add post type archive link to pop-up box link?

There are any way or plugin to add post type archive link inside editor link pop-up box? I having all page, post and other custom post type, but I haven't archive link. Thank you!
-3
votes
1answer
19 views

How can I fix my pagination?

I'm trying to get pagination working on my custom wp_query post loop. I currently have it set up, but when I click on page 2, it shows the exact same posts from page 1. I have a total of about 8 posts ...
-2
votes
0answers
9 views

Hiding Sale Price on Product Page Until Customer Adds to Cart or Checkout

We are looking for a piece of code that will allow us to hide our product sale price on the product page; display a message of our "Sale Pricing Available During Check Out". In return, it will show ...
0
votes
0answers
10 views

'transition_post_status' only fires when pressing “Add New”

I want to fire a function when a new post (cpt) is published. function my_publish( $new_status, $old_status, $post ) { if ( $new_status == 'publish' && 'publish' !== $old_status ) { ...
0
votes
1answer
9 views

Create an array with a string key from wpdb->get_results

Using this code to get some data into a PHP array: $currentProducts = array(); $currentProducts = $wpdb->get_results("SELECT id, feedid, size, price FROM products WHERE shopid = $shopid"); No ...
0
votes
0answers
11 views

how to get the child categories of products in the spicial style

I work on themes i get and can't know how to redesign the component to get what i need so i get the HTML of the element i need from the Pagebuilder in the theme and i make some search and find this ...
0
votes
0answers
15 views

Woocommerce add to cart button doesn't work with custom templates

I'm using twig for my WP templates and they work just fine. I've installed WooCommerce and all its templates into my theme folder so that I can overwrite them. I'm not planning to use twig with ...
0
votes
0answers
12 views

Get posts of a custom post type from category from taxonomy?

The theme I'm working with has a custom post type, "portfolio", inside a custom taxonomy, "portfoliocat" (post type and taxonomy definitions here). It is working ok: in the backup menu I can see the "...
0
votes
0answers
10 views

Getting Custom Attachment Meta Data from Custom Media Manager

I have a custom shortcode button which opens the media manager and allows you to insert an image into the post: (function() { var file_frame; tinymce.create('tinymce.plugins.customButtons', { ...
0
votes
2answers
31 views

Make a permalink to the most recent blog post

I want to make a permalink to my most recent blog post. I would use this link as a navbar link. The reason I'm not putting code straight into the navbar is because I am using a widget which will not ...
0
votes
0answers
11 views

Product dimensions filter by taxonomy

Introduction I am working on my own product filter based on a taxonomy called shop-filter. This taxonomy is meant to create filters like: "width" and "height", but also "dooropener" and "hinge type" ...
0
votes
0answers
25 views

Related post by tag?

I would like to ask that what code should i add in order to make my related posts by tag ? This is my code, but it ordered by category global $wiles_option; $categories = get_the_category( $...
0
votes
0answers
8 views

How i can get custom post id using custom taxonomy id?

<?php $pcats = get_terms('pcat'); //print_r($pcat); // echo $pcat = get_the_ID(); exit; foreach ($pcats as $pcat){ echo $pcat->term_id; ...
0
votes
1answer
28 views

add_action is never fired in child theme function.php

I'm setting up a child theme in WordPress and I can't make add_action to be fired within functions.php. Functions.php is called and I can run code from within. Any idea on what I'm doing wrong? $...
-2
votes
0answers
8 views

How to restrict a product based on another product [on hold]

Trying to do the following but can't find any info regarding anywhere. Task: We don't want to sell product B without Product A being in the same basket. I know this can be added as a option but the ...
-2
votes
0answers
8 views

WooCommerce - Add Adhoc product to order! [on hold]

Does anyone know if it is possible to add an ad-hoc product to the cart so a product that is not physically in the Wordpress back end. I have a client who has a custom feed of products from a third ...
-1
votes
0answers
8 views

Wordpress plugin to post to Facebook (or other social media accounts) [on hold]

I have previously used an email marketing solution which included a social area where i could write a post, and post it directly to my Facebook/Twitter page. I am working on a extranet style website ...
0
votes
0answers
11 views

Delete single meta row from multiple meta rows under same key of a post

I'm storing meta data for my posts using a single key, so it's creating multiple meta data. <?php $data = array( 'user_id' => $user_id, 'message' => $message ); add_post_meta( $post_id, '...
0
votes
0answers
9 views

Make Wordpress wp_delete_attachment delete files from a pre-defined custom folder

We have created a custom post type which allows our client to upload files to a folder outside of the standard Wordpress uploads folder (wp-content/upload-assets). These files are to be handled ...
0
votes
0answers
5 views

How can I give a user the right to edit pages, which however need to be approved first?

I'm trying to give a user the right to edit pages. However the standard "editor" role in Wordpress give the user the right to publish such changes immediately. Is it possible to let someone edit pages,...
0
votes
0answers
13 views

How do I redirect a permalink for a Draft post to a custom 404 page?

My users create posts with links to future posts which are in Draft status. We use Post Name as our permalink structure. Eg. <a href="/future-draft-post">Here is our next fantastic post ...
0
votes
1answer
27 views

Create users via PHP

I'd like to update my users list with some user from a csv file generated by another database (witch i can access too) i'd like to create dynamically a user (with username, password and so on) and ...
-4
votes
0answers
21 views

Shipping Calculator to recalculate totals via AJAX on selection of payment Gateway

I have designed a plugin for my website which calculates shipping costs dynamically from an external API based on the Pin code, weight & whether Cash on delivery is required or not. The entire ...
-1
votes
0answers
24 views

Site showing 500 internal server error

My site is showing a 500 (Internal Server Error) which is disabling me from being able to make my desired customizations to it. I've looked online and tried some of the solutions that I found but ...
-1
votes
1answer
17 views

How to show recent comments on WordPress homepage with post title?

I want to show 10 recent comments along with post titles on WordPress blog homepage. For this purpose, I am searching since last two days but I am unable to find any solution, Can somebody tell me how ...

15 30 50 per page