All Questions

0
votes
1answer
11 views

Install second wordpress in root subfolder, Error 404

I am trying to install wordpress in a subfolder of an existing wordpress installation. I created a the subfolder /wp unziped a fresh Wordpress download inside of that directory and added a .htaccess ...
0
votes
0answers
16 views

Thumbnails regenerate wp_generate_attachment_metadata

I'm importin pictures via FTP and create custom recorss in mySQL via insert. I'm trying to make a cron job to regenerate thumbnails. This is what i came up to.. but i doesnt work. add_action( '...
-1
votes
0answers
12 views

Add Notes in Php [on hold]

Please help to add Notes for every unique link.i am using this coding. <?php echo " <!DOCTYPE html> <html > <head> <meta charset=\"UTF-8\"> <link rel=\"...
0
votes
0answers
9 views

Using RSS feed of free wordpress site [on hold]

I am an android developer and I've maintained a simple wordpress blog with its free domain (lets say xyz.wordpress.com). It's a very simple blog with posts that has some images and text. I am thinking ...
0
votes
1answer
18 views

Woocommerce - Override the default templates location under the theme directory

As per official woocommerce documentation (here), the proper and safe way to override default woocomerce templates via theme is to create a sub-folder under the theme directory with the 'default' name ...
-1
votes
1answer
10 views

How to create a child theme without losing changes made to parent

I'm trying to create a child theme of my current theme while maintaining the changes that I've made to the parent theme using its own options in the Appearance -> Customise panel. However, as has ...
0
votes
1answer
8 views

Plugin for an interactive image? [on hold]

I'd like to make an interactive image like this one, so when a visitor hovers over that circle, some text dialog pops up. Does anybody know any WordPress plugin that could do that or atleast something ...
-1
votes
0answers
9 views

Static data to cart. woocommerce

I have a product page where I calculate the data using javascript - because many custom data (not attribute), this is a product page - the data is static, is it possible click add to cart button ...
1
vote
2answers
8 views

How do I force password reset even with wrong password entered?

I am currently moving from a custom platform to WordPress. I don't believe there is anyway to migrate passwords from our current site due to encryption. User will be emailed to reset their password ...
0
votes
0answers
8 views

Images are displaying as blank images

I am trying to upload base 64 encoded images to my website media library via API. API returns with image ID but these images are displaying as blank images in my media library. Here is my code ...
0
votes
0answers
12 views

Am admin yet unable to update, install, delete plugins, etc

Title says it all which is unusual enough - it's although I'm logged in with a different role such as an editor. However, here's where it gets more weird This site is hosted on a VPS. There is an ...
1
vote
2answers
23 views

Send request to WordPress REST API

I have a server (server 1) which send requests to another server (server 2) where WordPress is installed and I am using their (server 2) WP REST API. The problem is that I can't create/send wp-nonce ...
-1
votes
0answers
9 views

What plugin do I need to use to have the same layout? [on hold]

I would like to know how can I create the the same layout of recent post as in this link. https://greenkitchenstories.com/recipe-index/ Many thanks!
0
votes
0answers
9 views

XMLHttpRequest to open PHP file responds with Missing Page

I am using CBM2 plugin within my own custom plugins. I need create my own file uploader so that the file will be stored at a different location than the metapost table within word press. Thus I am ...
0
votes
0answers
8 views

Genesis Framework - genesis_before_content_sidebar_wrap problem

I'm trying to use the genesis_before_content_sidebar_wrap hook in the Genesis Framework to insert a header for the posts <?php if (is_home()) { ?> <div class="blog-title"><h1>...
0
votes
0answers
8 views

can I hide widget filters from certain category pages?

Is it possible to hide widget filters from certain category pages? For example: if I have two categories, "cover art" and "logos", how can I make the product tag cloud filter option appear on the ...
0
votes
1answer
11 views

How to create a post template with two sidebars

I'm looking for a way to have a post template that has two sidebars, one on the right side, the other on the left side, with always the same content on each one of them. I defined that left sidebar ...
0
votes
0answers
6 views

sql query page listing with option selected

I want to separate a page page from the sql query. for example current page and last page with option selected. my listing page code <ul class="list-group"> <h2 class="h3">...
0
votes
1answer
9 views

Settings API - format container of setting and setting's description

This is how I create my settings page's output: public function create_settings_page() { $this->options = $this->lal_get_settings(); ?> <div class="wrap"> &...
0
votes
0answers
12 views

How to define the template for custom posts?

I created a new custom type called 'books' and I created a Field using the Advanced Custom Fields plugin where I define the fields and create the records, with post names such as book1, book2, etc. I ...
0
votes
0answers
15 views

Send email when a user registers Rest api

currently using this plugin https://wordpress.org/plugins/wp-rest-user/ and there is a section where if you want to send a user an email when he/she registers (using wordpress as a headless CMS) ...
0
votes
0answers
21 views

I am looking for change in WP search results

I am using ajax search pro to perform a search on my website which is displaying users list based on the search term, but I am using default Wordpress search result page to display the users list. ...
0
votes
0answers
11 views

Woocommerce featured products query no longer working

I have a query that's stopped working since Woo 3.6 upgrade I think. I'm trying to get products in a category that are featured. Any help would be much appreciated:) <?php ...
1
vote
0answers
12 views

Performance of Gutenberg block attributes with source selectors vs without

Are there any performance considerations I should take into account between choosing to store block attributes with a source selector or storing them in the comment delimiter? My assumption is a ...
2
votes
1answer
16 views

Set a default quantity input value for a variable product category in WooCommerce

I have a variable product called flyer in woocommerce, and I want to set its default quantity input value to 500 as its min quantity. This is what I have done so far, but the default quantity is still ...
0
votes
0answers
14 views

Really Simple CSV importer and serialisez data (ACF)

thanks for reading me ! I'm using Really Simple CSV importer to bulk import CSV files in my database. It works fine, but now i need to fill some ACF field that uses checkboxes. The data are stored as ...
3
votes
1answer
206 views

WordPress 5.2.1 deactivated my jQuery

I've been using the code below to use Google's jQuery but the latest WordPress version deactivated it. How can I use jQuery from Google? //* Use Google's jQuery add_action('init', '...
0
votes
0answers
13 views

WooCommerce give option to customer font awesome star rating instead of default number rating

How do I change WooCommerce default number rating system to font awesome stars in the review section like below?
0
votes
0answers
17 views

Using existing ajax data that is loaded into page

Hey guys thanks in advance, is there a js function that I can use on an existing data that was generated by a plugin with an ajax request ? Iv checked it is loaded with the network tab. but I'm not ...
0
votes
3answers
31 views

Redirect after login based on user role (custom login page)

I created a custom login page and everything is OK but there is an issue. I want to redirect users to different pages based on their roles after login. My code is below but I do not know why it is not ...
-1
votes
0answers
24 views

Problem with WP site

could anybody help me with that error: Fatal error: Uncaught Error: Call to undefined function admin_url() in /data01/virt78153/domeenid/www..ee/htdocs/wp-includes/functions.php:21 Stack trace: ...
0
votes
0answers
13 views

Make authorization mandatory on custom routes

I'm setting up multiple custom api routes in my wordpress theme and I would like that to require a JWT token to access. So I have followed the steps in order to get the JWT Authentication for WP Rest ...
0
votes
1answer
20 views

Query string form $_GET['value'] is not working as meta value in wp_query

Here is my code.How strange! if I put any static value replacing $s_string, it's working fine. Thanks in advance for any help. $s_string = !empty($_GET['q']) ? sanitize_text_field($_GET['q']) : ''; $...
0
votes
0answers
13 views

WP Admin Bar transparent on some pages (.screen-reader-shortcut)

I have an issue where the WP Admin Bar is transparent on some pages on the site. It's there and all the links are clickable, however, it is not viable. I am using a child version of the Divi Theme ...
-2
votes
0answers
35 views

How No WordPress Theme Source Code is on the source code site [on hold]

can check the template of this site http://javooneirani.ir You are using a code that does not refer to a particular template and uses the default WordPress css! How make this themes?
-2
votes
0answers
16 views

Missing directories in wordpress? Mikado issuse

I have a problem with mikado plugin on WordPress. When I installed the theme and try to import demo I get errors on site: Warning: PHP Startup: failed to open stream: No such file or directory in /...
0
votes
0answers
20 views

Export wordpress image ID based off keyword search

I would like to know how to go about exporting a load of image ID's based off the image name. For example 'how to dig gold' search may have a load of images like how to dig gold.mp4001.jpg how to ...
-2
votes
0answers
10 views

my pagination in front page just show only same post

I am developing a website with edd and I wanted to show my download archive as a home page. I used this function: add_action("pre_get_posts", "custom_front_page"); function custom_front_page($...
0
votes
0answers
11 views

Show Gutenberg Categories Block on custrom plugin

Is there any way to import/use the gutenberg categories block in a custom gutenberg panel? I want to avoid to write it again by myself
0
votes
0answers
28 views

Display data in using WP_List_Table

How to display data using WP_List_Table ? My code is like below class myTable extends WP_List_Table { var $example_data = array( array('ID' => 1,'booktitle' => 'Quarter Share', '...
0
votes
2answers
28 views

How can I automatically delete comments that contain a URL?

My WordPress website is being bombarded by spam comments. Nearly all of them contain a valid URL. How can I delete these comments automatically? I don't want to put them into the review queue; I just ...
0
votes
0answers
8 views

How to upload a file to a different directory, but not its preview images?

I use a filter (in my custom plugin for my website) to force upload of files loaded with an Ultimate Member plugin form in a directory different from the default 'uploads' one. The filter works ...
0
votes
0answers
8 views

Add different sticky sidebar to posts and pages

Good day. How do you add different sticky sidebars to post and pages? Usually in every theme there is this universal sidebar in widget options but I want to do is for every post or page, a ...
-2
votes
0answers
10 views

Cart view not working

When to my cart view on menu it's not work link doesn't go anywhere. it's still in same page.I have been searching for long but I don't found any answer. some answer told that i have to go to ...
0
votes
0answers
8 views

Extend Cookie with auth_cookie_expiration not working

I was trying to extend the Login Cookie with the following Code function expiration_filter($seconds, $user_id, $remember){ //if "remember me" is checked; if ( $remember ) { //WP ...
0
votes
0answers
13 views

Reading data from XML file and printing selected data

I have a blog feed which is in an XML file: <item> <title>Title</title> <link>link</link> <pubDate>Date</pubDate> </item> I'm trying to ...
0
votes
0answers
19 views

How to get all the terms from a custom hierarchical taxonomy via REST api?

This post can be a solution, but I guess there could be something more linear or native: https://stackoverflow.com/questions/42462187/wordpress-rest-api-v2-how-to-list-taxonomy-terms The official ...
0
votes
1answer
20 views

Enable Excerpt field inside the post editor for pages

How can I edit the post excerpt for pages? This field is visible inside the post editor for single posts only. Not for pages. Is there any option to show it?
-2
votes
0answers
13 views

How to enable a landing page for woo

I've created (with SiteOrigin) and tested a new landing page for one of our product categories. The test showed, that this new page is performing better than the default category page from woo. Since ...
-1
votes
1answer
17 views

Wordpress check box unchecked on null value ternary operator [plugin development]

I'm trying to use wordpress plugin development, without a checked checkbox getting an error. <?php global $options; ?> <input name="settings[enable]" type="checkbox" id="" value="1" <...

15 30 50 per page