All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

how to load random related posts with specific custom fields?

I want to load 3 posts that have the same custom field value as the current post. for example: The current post has 3 custom fields: color: black background: red lastname: doe Now I want to load ...
1
vote
0answers
5 views

how to integrate cashfree quick button in wordpress [closed]

I am trying to integrate a cash-free quick button on my website. but it is not showing anything? did anyone used this plugin
0
votes
1answer
11 views

Error in node.js webpack-cli failed to load config, typeError: ManifestPlugin is not a constructor

In the command line webpack throws out the following error when I try to execute 'npm run dev' with the following commands: "dev": "npm-run-all -p devFast buildWatch", &...
0
votes
0answers
6 views

Text input field for filtering custom post type in custom archive page

I made a glossary custom archive for a custom post type 'words' and I'm trying to add a search bar/text input field that will filter the words and only show the ones that have the ...
0
votes
2answers
13 views

Wordpress development to production syncing

I use my home server for Wordpress development/experiments and would like to have my home server in sync at the click of a button with my hosted server. I can of course copy the sql and files but I’m ...
0
votes
0answers
13 views

How to allow wordpress logged in users to delete and edit their own comments?

Can anyone help me achieving following? tested few methods without a luck. i need to let users to edit or delete their own comments they have posted on a blog article. is there a code snippet i can ...
0
votes
1answer
14 views

node.js and webpack throws error when trying to setup node to watch theme folder for saved changes

Ok, so I have been getting this error thrown out when I try to run my npm run devFast command, so it can watch my theme for saved changes. I think it has to do something with my file structure, some ...
1
vote
0answers
13 views

How to keep WP from creating a “single-post” page and let the user input the link of the post in the dashboard?

I have this very specific questions. On my homepage I decided to show excerpts of the latest news and events with a "while" loop. The issue is that I want the admin to define what the ...
0
votes
0answers
11 views

Add Custom Search Box for CPT in Admin area

I want to add a custom search box in edit.php . but i did not find the filter for doing that. as you see in the picture, I want to add another search form next to the default WordPress one. The ...
1
vote
1answer
19 views

Wordpress doesn't save changes some times

I have an wordpress website and have a lots of user's that write content in it. Sometimes when users edit or create new post and save it, after refresh it disappeared. I have a backup system that ...
0
votes
0answers
9 views

Hiding Tutor LMS lesson names for anonymous users [closed]

I am using Tutor LMS with Elementor. I want to partially hide the lesson names for anonymous users. For example: Topic names would be visible, first 2 or 3 lesson names would also be visible but any ...
0
votes
1answer
13 views

why woocommerce api only do not upload images from local computer? [closed]

I want to upload images on my computer to a wordpress website, however the woocommerce api is only working well with everything except images on my computer. Here is the code I am using when it works ...
0
votes
0answers
18 views

Using the admin Featured Image's modal in the front end

I am trying to get the new upload frame of the featured image used in the admin side, but the one used in the front is different. I will show you some screenshots: In the admin section when I click ...
1
vote
0answers
18 views

upload image to wp-api

I am using a localhost external website, that isn't wordpress related, and I want to upload an image to wordpress, possibly needs to be with wordpress api, however I would like to know how to connect ...
0
votes
2answers
26 views

How to upload image to wordpress from external page

I have a webpage on localhost that do not have wordpress environment, I had use woocommerce api to create the product, however woocommerce api doesnt seem to upload the image. I want to create the ...
0
votes
1answer
18 views

echo something inside a shortcode

I'm a frontender, so i'm not so used to work with php. But I need to solve something. I'm adding a shortcode within the single-product template, and inside this shortcode, I need to echo the slug from ...
0
votes
1answer
8 views

Changing domain name causes some strange problem in my browser

My site’s domain name was originally devsite.com, last week I changed it to productsite.com on my virtual server( managed by virtualmin). I have also changed the setting and updated the database. I ...
0
votes
0answers
7 views

WP Job Manager - connect filter to an existing widget-field

I'm using WP Job Manager in combination with ListingEasy (theme). I have made an extra search filter, based on a new custom form field. However, now I want to refer to an existing field, named: ...
0
votes
1answer
16 views

Show recent posts from a custom taxonomy in wordpress

I create a custom taxonomy called "site". I cannot figure out what code to put in single.PHP to show related posts ONLY from "site" custom taxonomy. Please help.
0
votes
0answers
6 views

Woocommerce - Product Color Selection with Photo

is the plug that selects the color with the photo? (there may be a fee). as in the example:
0
votes
1answer
29 views

Automatically Add Defer or ASYNC to all JS files (no matter where they are located)

I'm looking for a way to automatically add defer to all JS files on my server. While I found a way that seem to be working, I am not sure if this is the best way / best practice 2021 for WordPress? I ...
0
votes
0answers
14 views

add specific field to contact form 7 for custom post type

please I work to build Front-end Submission I mean I want use contact form 7 to add post without dashboard this post is from my custom post type which is child for main post so the the steps is: 1- ...
3
votes
1answer
14 views

Automatically add product_categories to nav_menu

I've been googling around about days working for a client and would like that every time they add a product_category, it should get automatically added as a sub-menu item in the Primary navigation ...
0
votes
0answers
7 views

Contact Form 7 Redirect to different URL on form submit depending upon dropdown select

I am using this code for dropdown menu in Contact Form 7: [select* menu-student id:menustudent include_blank "Student" "Professional"] I want if one select Student, then after ...
0
votes
1answer
21 views

Add Shortcode Inside Excerpt

I have the following function: function word_function(){ return 'PLACEHOLDER'; } add_shortcode('word_place', 'word_function'); add_filter('get_the_excerpt', 'do_shortcode'); It places the word &...
0
votes
0answers
7 views

WordPress redirecting Register page to login page

When a visitor wants to reach https://ostadziya.com/register, it will automatically redirect to the login page. The URL is https://ostadziya.com/login/?redirect_to=https%3A%2F%2Fostadziya.com%...
0
votes
0answers
6 views

Submit a form and save data to custom post type in woocommerce

I am wondering how can I send the data submit in WS FORM to a tab in WooCommerce Frontend Manager the tab have his own php but the site is multivendor. wsform gave this action config im triyng using ...
0
votes
0answers
30 views

get_the_post_thumbnail() not displaying

PHP newb here. I'm trying to create a function that will list child pages with their featured image. But I can't get the image to display using get_the_post_thumbnail(). I've tried a bunch of things ...
0
votes
0answers
39 views

meta_query for a string inside a meta field containing a comma-separated list

In my project the WP users have a custom meta field "usergroup" containing a comma separated list of values. The meta field can contain values like this: WS,CT,IS,TS,TS-IS,TS-WS,TS-CT Now I ...
1
vote
1answer
23 views

Select other roles as custom post authors

I created a custom post type ("Organization"), and I've also created a custom user role ("Representative"). Also, I've ensured that the Representative role has read/edit/create/...
0
votes
0answers
7 views

can built custom post type instead of comments

can I put custom post type as comments is there any method? cause I tried a lot of codes but no one worked
0
votes
0answers
17 views

build Custom post type and make it child for Posts and put it as comment

I want to build custom post type under name "lesson" I try tis code function my_register_cpt() { $labels = array( 'name' => _x( 'Lessons', 'Post Type General ...
0
votes
0answers
7 views

Change Author user role permissions to enable them to see pages marked “Private”

Change Author user role to enable Authors to see pages marked "Private" I hope that explains what I'm trying to accomplish. I have no need of a plugin, just something for my functions file (...
0
votes
0answers
10 views

Hide users on users.php with a specific meta value

I am using the User Switching plugin in order to allow sales agents to place an order on behalf of a customer. I want to allow sales agents to switch into their customers only instead of all customers....
0
votes
1answer
15 views

WP.org acceptable iframe alternative

Imagine this: You're creating a plugin that shows the php error log in real time. As the log changes, the log file gets reloaded and displayed to the user. I can do this in JS and an iframe by having ...
0
votes
0answers
34 views

Saving form with AJAX for WordPress Plugin

I am developing a WordPress plugin that needs to have multiple profiles that the admin can create on the Admin screen. The plugin appends a block to the end of every (unless specified otherwise) post, ...
0
votes
0answers
9 views

Wordpress custom php script to match standard page layout

I am writing a custom php script and want to load the theme so it will look like a regular page. I tried the following. <?php define( 'WP_USE_THEMES', true ); require( $_SERVER['DOCUMENT_ROOT'] . '/...
0
votes
0answers
4 views

How can we save selected input of select2 in elementor custom control?

I am also building a custom control with select2 and ajax API for options. Everything works except the value is not saved in the editor when refreshing the page. I tried trigger ('input') but didn't ...
0
votes
1answer
11 views

Get specific Blocks from Post

I'm trying to load individual Post Blocks (by type) into separate divs, I've tried filtering tags but the outcome is there's a bunch of abandoned divs and it's overall messy and unpredictable. I was ...
1
vote
0answers
5 views

Am i able to create a Schema type by using custom Taxonomy in Schema Pro [closed]

Currently, I am facing a problem that is I am Using Schema Pro, I want to add schema metadata by using my custom taxonomy in my website but unfortunately, I am not able to do this I also apply ACF ...
0
votes
0answers
7 views

Transfer post categories along with the posts to woocommerce categories & products

I'm seeking of a way to convert post categories and posts associated to them, to WooCommerce products and categories. What is the best way to do it? Thanks in advance!
0
votes
0answers
7 views

Search results page title when taxonomy chosen in filter

I have a search form which includes a filter for 'post type', 'sector', and 'region' plus a text field for searching whatever words a user wants. 'Sector' and 'region' are custom taxonomies. Currently ...
0
votes
0answers
9 views

Uncaught Error: Call to a member function get_billing_state() [closed]

I have a issues with the function get_billing_state(); Theses is the error: "[05-Jun-2021 18:32:48 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_billing_state() on null in /...
0
votes
0answers
9 views

Shortcode use creates a scroll error/ jump to top of page? [closed]

I'm using "Coin Widgets" plugin in Wordpress. I'm using it in the sidebar widget area. When using the following shortcode: [vcw-price-label id="bitcoin" color="white" ...
0
votes
1answer
11 views

I changed .live() to .on() but change is not reflected on the server

I downloaded a quantity increment plugin (themeszone Woocommerce ajax quantity) for my Wordpress site. Some of the Jquery was outdated this line specifically; $('.tz-qty-cont').live('click', function()...
0
votes
0answers
8 views

Formatting messed up when piping certain wp commands

I'm stuck with something again. I had a previous question found here: Previous question So bascally the solution that was there, for no apparent reason stopped working. Only thing that might have ...
0
votes
0answers
6 views

Wordpress paramalink issue when not logged-in on hosting server

I am facing an issue first time ever related to paramalinks on shared hosting server. When clicked on any internal link browser window show url which one is clicked, but page display doesn't change. ...
0
votes
0answers
19 views

Duplicate content problems after adding an archive page to the article's post type

I have changed the url of my blog articles from www.mysite.com/article to www.mysite.com/blog/article, to achieve this, i have used two functions: if ( $post_type == "post" ) { $args['...
0
votes
1answer
31 views

Adding inline JavaScript after wp_enqueue_scripts

I work on a plugin and want to add an inline JS script once the place order button is hit on the checkout page (Woocommerce extension). In other words is there a way to add inline JS once ...
0
votes
0answers
12 views

Grid layout with columns [closed]

Good day, I build a blog page with custom php and css. I used the display:grid function, and then added grid-template-columns: auto ; My question is, how to I make the grid columns adjust the height ...

15 30 50 per page
1
2 3 4 5
2188