All Questions

1
vote
1answer
11 views

Hook to use when customer placing order

Currently I am using woocommerce_thankyou action to run a function that creates an order at a third party service. However, sometimes customers don't return to the Thank You page after visiting our ...
0
votes
0answers
15 views

WordPress | WP_Query | The post 'offset' is not working and posts_per_page is not set to -1 [duplicate]

Why is my random post query ignoring the offset value? <!-- RECENT BLOG POSTS --> <?php $recentargs = array( 'post_type' => 'post', 'post_status' => 'publish', '...
0
votes
1answer
13 views

get parent and childs from hierarchcial taxonomy

I have a hierarchical taxonomy and I want to show only children from 1 parent. For example, the taxonomy looks like this: - Events -- Location -- Date - Region -- State -- StateCode When I use my ...
0
votes
0answers
15 views

Restrict certain pages to the users with the same user role

So yes I know there are plugins such as Capability Manager Enhancer & Edit User Role which allows users with the different user roles to edit certain pages. However, I don't think they support ...
0
votes
1answer
10 views

Multiple pagename WP Query

I wonder if I can use WP_Query() with multiple slug like p => array(1,2,3) I have tried using pagename => array('accommodation','activities','restaurant') but pagename expects a string and ...
0
votes
1answer
17 views

How to make menu country specific?

How to make WordPress menu country specific? Like I want to show one menu for only one country and hide it from rest of all. Don't want to purchase a plugin. How to do it with code customization?
0
votes
1answer
26 views

How do I link a featured photo to it's post?

I cannot change the url of the photo in the featured-image edit section. The page can be found at https://irregularus.com/tips-and-stories/ and if you click on the picture you will see that it just ...
0
votes
0answers
15 views

Alternative to Unite WordPress Theme [on hold]

I found Unite WordPress Theme is very easy to customize by creating Child Theme. But since its last update is relatively too long (March 18, 2016), I'd like to know if are there better options with ...
0
votes
0answers
22 views

Avoiding compatibility issues with JavaScript libraries in WP plugins

Having a look at https://developer.wordpress.org/themes/basics/including-css-javascript/#default-scripts-included-and-registered-by-wordpress I see that some JS libraries are included with WordPress. ...
0
votes
1answer
20 views

Reading POST over admin-ajax.php

Im trying read form POST values submitted over ajax call (admin-ajax.php).The POST is prepared and submitted. Here are the server side action hooks I have in Child Theme's functions.php add_action('...
0
votes
0answers
18 views

Cannot login, says Email/user not found

I had a free wordpress site, Stories we were told, by Kathryn Cody and I went to google it to share to a friend and it wouldn't show up in search engines. So I went to wordpress and i entered my ...
0
votes
0answers
9 views

Hidden Form Custom Post Meta Field for Storing Post_id using PHP and save_post hook

In order to send email notifications to registered users when a new listing matches their breed and location preference, need the post_id stored in a meta field to have post_id parameter available for ...
0
votes
0answers
13 views

New Post or Page Permalink: ?preview=true Submit For Review [on hold]

Hi I paid premium level tech support to move a site from shared hosting to a VPS. After 3 weeks, about 6 reinstallations, 150+ emails, Im still at a loss how to fix this issue. Cant trust tech ...
1
vote
0answers
21 views

Archiving by academic year instead of calendar year

I am building a website for a school where teachers can add posts for classwork. The posts are categorised by the class name (e.g Year 1, Year 2, etc). The academic year goes from September to July. I ...
0
votes
1answer
18 views

Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”

I’m trying to get BTF integrated with the Ajax Load More plugin and am having trouble on the filter results that are using two differen t taxonomies. Basically I just need to know how to query/call ...
0
votes
1answer
14 views

Is it possible to fix/repair all Index, Primary Key, Unique (and all other) structure of a Wordpress MS Database

I've backed up my Multisite database (via export from PhpMyAdmin) then after some problems I decided to revert back the original (backed-up database) and I've imported (upload it via PhpMyAdmin) again ...
0
votes
0answers
15 views

How to modify a 'replace' array to apply only to first instance on any post? [on hold]

I would like to modify this (working) functions code so that it will only change the first instance of the word 'google' and not the other instances on the page. Currently, it affects all instances in ...
1
vote
1answer
16 views

Storing the contents from txt file into The_Contents"

Currently I am trying to fetch data from an external page, which I have stored via a custom field and store it into the top portion of my WordPress the_content when the post is saved. The steps are ...
1
vote
0answers
20 views

How to sort by columns within a search result without displaying all rows again after sorting

I want to display a WP_List_Table on a submenu_page and offer a search function. The display of the data works so far and also the search, but the column sorting causes problems. If I click on the ...
0
votes
0answers
10 views

WordPress custom ajax login not working on mobile browsers

I have a custom Ajax login/signup form which logs the user in and invokes location.reload() if the request is successful. My Ajax login works perfectly in desktop browsers using only the wp_signon ...
0
votes
1answer
13 views

Print only parent categories of post in custom RSS feed

I'm trying to print only the parent category for each post and a permalink to that category within a custom Wordpress RSS feed. Using <?php the_category_rss(); ?> prints all categories for a ...
0
votes
1answer
7 views

On button click, redirect users to registration page instead of another page

I have a button that I have that leads users to a page on WordPress called /portfolio/, so is there a way that I can redirect users to the /registration/ page until their logged in? I'm using a ...
1
vote
1answer
20 views

Shortcode content output but not in correct place

I have created a shortcode that gets information from an ACF repeater field... function display_websites_shortcode() { ob_start(); // check if the repeater field has rows of data if( ...
0
votes
0answers
18 views

meta_query orderby sort multiple keys

I'm trying to read the birthdays of the users in my database through custom fields that have been added. Displaying the current months is easy but I am trying to capture the current month(remainder) ...
0
votes
0answers
17 views

WooCommerce Custom Data from JS code

I am working on an online shoe shop and it needs the option for costumizable shoes with live preview. I've written the application for that in JS, you can select up to 7 colors for 8 different parts ...
0
votes
1answer
19 views

wp.editor.initialize does nothing

I'm trying to add additional wp_editor instances when a user clicks an "Add content" button in the back-end. I have it mostly working, except that the user needs to save the post after adding the ...
0
votes
0answers
11 views

Slider Revolution Single Slide not looping

I have 1 slide in my slider revolution and it has a Main Background Source of YouTube Video and I am trying to get the slide to loop so its continuous play, here are my YouTube Arguments: mute=1&...
0
votes
2answers
19 views

How can we display full post on home page rather than excerpt

I have a puzzle website where i am looking for the option to display full question on the home page rather than excerp. Just a note that questions are custom posts. Is there any way. Thanks
0
votes
3answers
24 views

Title has word broken when viewed in mobile

I am designing a website using the Renden Free theme, and my problem is that some long titles, when viewed in mobile, have words broken in half. For example: As you can see, the word "Corporal" gets ...
0
votes
0answers
16 views

Adding specific custom fields (images) to post excerpt

I am working on a simple user profile archive, using the theme "Atomic Blocks" as a starter theme. I am using one custom post type and several custom post fields to create these user profiles. The ...
2
votes
3answers
20 views

Loading page template into shortcode

I am attempting to load a page template into a shortcode so I can easily load the content wherever I want. I have done some research and many people have said this code has worked for them but for ...
0
votes
0answers
6 views

Problem with recaptcha

i have a dump of bd and files of wordpress, all that on a hosting, actually i'm trying to make it work on my localhost, everything is ok now but i have a problem with recaptcha, like this was on a ...
0
votes
2answers
15 views

Attachement Meta DATA

we try to connect our Managment Software to Wordpress / Woocommerce. Our customers can edit and manage product, stock and category directly from our sofware. Wordpress Database is simply so we easly ...
1
vote
1answer
9 views

is_user_logged_in() not working in AJAX validation call

Update: Error was a simple typo, disregard this question. I'm using the jQuery validate plugin to validate some forms. When I try to validate something using the is_user_logged_in() function, I get ...
1
vote
2answers
14 views

list taxonomies from a custom post type

I registered a Taxonomy for a custom post type called events. // Register Custom Taxonomy function events_categories() { $labels = array( 'name' => _x( '...
1
vote
0answers
11 views

Storefront child theme not applying parent theme [on hold]

I've followed, word for word, the Storefront guide for creating a child theme: https://docs.woocommerce.com/document/set-up-and-use-a-child-theme/ I've got a new folder in my themes folder, added a ...
2
votes
1answer
29 views

How to sort posts with the first 2 or 3 by latest, and the rest is random?

I'm trying to sort my posts in the way I stated in the title. What's the simplest way to do this? I know how to change the order by object using the pre_get_post hook. But how can I use it to get ...
0
votes
0answers
30 views

Add ajax load more function using WP API

I want to create a load more function using ajax for a post category. I've followed this article on how to proceed, but after I add the function to register the endpoint, it will give me a 404 error ...
0
votes
1answer
29 views

How to elect position of new item output in a dropdown when using add_filter

Hello I am using the suggested snippet here to add a new term to a dropdown menu: https://wpjobmanager.com/document/applications-customising-application-statuses/ which is: add_filter( '...
0
votes
0answers
26 views

Uncaught SyntaxError: missing ) after argument list

I'm getting this error when loading my page. I have 5.0.3 of WordPress. Uncaught SyntaxError: missing ) after argument list :formatted:1845 The link redirect to this code: <script type='...
0
votes
1answer
15 views

how to add multiple custom taxonomy meta fields or at least a description with wp_set_post_terms

a legacy codebase uses wp_set_post_terms to add taxonomies on the fly when creating new posts, can I extend it to add multiple custom taxonomy meta fields or at least a description?
0
votes
0answers
10 views

Get Specific Product ID WooCommerce Comments

I am trying to place the WooCommerce comment fields but for an specific product id <?php global $withcomments; $withcomments = true; comments_template( '', true ); ?> And this custom field ...
0
votes
0answers
25 views

What makes a theme “AMP Ready”?

In looking at boosting my site's rank, I see the AMP plugin and some add-ons. Is "AMP Ready" basically a marketing term I see on themes now? Seems like I just enable a plugin and adjust some settings, ...
0
votes
1answer
29 views

Get the current block ID

Is there a way to get the current block id? I would like to add it in the html generated in the save function (registerBlockType). The save portion of my block: save: props => { const { ...
0
votes
1answer
16 views

How to add a same div on every page

Hi I would like to add a custom div on bottom of every page. I am using genesis framework with child theme enterprise-pro I would like to change the child theme page.php file but I am not able to ...
0
votes
0answers
9 views

Unable to use Toggle with block lab [on hold]

I'm trying to create a custom block with Block Lab and gutemberg. In this block I would like to use a toggle switch to display or not another custom field. I cannot manage to display to toggle button, ...
0
votes
1answer
16 views

WooCommerce to support individual product pricing based on external data

Is there any possibility to set product price individually? Let's say I have a shop to sell uPVC windows. There are base product items created in WooCommerce that correlate to windows manufacturers: ...
0
votes
0answers
7 views

How to duplicate form div elements? [migrated]

This code is not working when I am trying to duplicate form elements or DIV.But the code is working when removing form tag.I want to be able to duplicate Div under form Tag using plain javascript. ...
0
votes
0answers
10 views

My Webpack setting for Gutenberg doesn't work

I started making custom gutenberg block and am trying to setup the environment but never work... Webpack always throws error like "Unexpected token", which says JSX Compiling. Here are testing files....
0
votes
1answer
15 views

How to get the custom post list to admin user edit page?

I want to list out some post types in the admin panel admin user section to allow the users to access from the front end. How can i get the post list in admin user edit profile section?

15 30 50 per page