All Questions

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

Image is displaying with the url of the image as well

So its displaying the image like i want it, but the url of image comes with it as well. Here is the code that i'm using.
0
votes
0answers
9 views

rewrite based slug standar post wp

I want to create based slug for default post type wordpress based on query var lang. for lang=en my url want to be https://domain.com/articles/{post-name} for lang=nl my url want to be https://domain....
0
votes
0answers
16 views

Lazy Loading of all Images

I have noticed WordPress is lazy loading all images by default now. This affects the load time of our LCP image and gives us a low score for Core Web Vitals. The new Page Speed site https://pagespeed....
0
votes
1answer
23 views

Are there any Inbuilt Social media sharing icons

Are there any inbuilt social media sharing icons in the WordPress core? or the only route is plugin/code. While searching it in menu/widgets, some rectangular icons appeared( as in BLOGGER, but i ...
0
votes
0answers
17 views

Elementor throwing server error (403 Forbidden) on updating [closed]

I am stuck on server error (403 Forbidden) when updating, I have already tried following fixes & none of this works: Disabled MOD Security Disabled Word Fence Plugin Purged all Cache Disabled ...
0
votes
0answers
12 views

Wordpress post shortcode pagination not working

I've created a shortcode for displaying posts from specific category. All works correctly except the pagination. The pagination is displaying correctly and can navigate through pages. But other posts ...
0
votes
0answers
16 views

How to prevent users to view server files using WP File Manager plugin?

I'm developing some plugins to an website, but I don't want the users to see the code (or download it). If the user install the plugin WP File Manager, all files in the host will be revealed to him. ...
0
votes
0answers
11 views

A dash can replace a period in a link, how to fix it

My link structure. I noticed that if you put a dash instead of a dot, it will also work. How to fix it? Normal link https://website.com/post-name-one.html Dash instead of dot link https://website.com/...
0
votes
0answers
9 views

Last post sorting get_categories

I'm sorry, I speak a little English. I try: $categories = get_categories( array( 'orderby'=> 'post_date', // last post date in category 'order'=> 'DESC' ) ); Why not works?
0
votes
1answer
13 views

How to get tags outside of loop for specific page I'm on?

Outside the loop, if I use the following code in my child theme... $mtags = get_tags(array( 'taxonomy' => 'custom_tag', 'orderby' => 'name' )); It prints out all my tags....
0
votes
0answers
15 views

How can I update WordPress plugins or WordPress itself in all server?

I have 3 application server on AWS. if I update WordPress or plugins in one server it will update in the rest of the servers too. How can i do that??
0
votes
0answers
11 views

Variation prices breakdown only for single product page

Hey I'm trying to display breakdown of selected variation price but only on product single page. I dont want to overwite the price but just to show it after the add-to-cat and buy now buttons.For ex ...
0
votes
0answers
15 views

Mysql Server keeps crashing

I'm using wordpress for my site and my server is vps with memory of 2GB and SSD 40GB. My SQL Server crashes every now and then for few seconds and the website shows 'can't connect to the database'. I ...
0
votes
0answers
15 views

Clicking "Download MP3" downloads 0kb file

I have a problem on my client's Wordpress site. The client has MP3 files that they would like to be able to be played in the browser but also be downloadable. Playing in the browser isn't a problem, ...
0
votes
1answer
10 views

Can the uniqueness of the plugin file/plugin slug and version number be trusted?

I am wanting to identify plugins and their contents, and am looking to see if I can avoid calculating the hash of all files in each plugin. My immediate approach was to use the plugin slug or plugin ...
0
votes
1answer
28 views

Unexpected add action function in WP plugin

I'm trying to build out a plugin from a tutorial that will access my google calendar. So far I'm stuck on just trying to register the widget. Here is a link to the tutorial: https://code.tutsplus....
0
votes
1answer
24 views

How to change the date and time in REST API for comments?

/** * Add a Formatted Date to the WordPress REST API JSON Post Object * */ add_action('rest_api_init', function() { register_rest_field( array('comment'), 'formatted_date', ...
0
votes
1answer
24 views

Load different logo on mobile

I’m creating a website for a charity, but haven't got a lot of experience. If you view the website on desktop (https://walkministries.org.uk/newsite/) the logo is blue on a light grey background. But ...
0
votes
0answers
23 views

Change the default Post/Page edit title in Admin

When editing a lot of pages at once, it would be helpful to change the default "Edit page < sitename - Wordpress" to something more clear, like the page/post title. I found a few code ...
1
vote
0answers
13 views

how to change woocommerce shop archive description? [closed]

I use elementor to show dynamics text based on product categories description. I can change categories description from woocommerce, but how can I change the default shop page description? "This ...
0
votes
0answers
16 views

meta box pop up upload button wont work

I want to upload multiple images for portfolio, but upload button wont pop up at all, but when I remove PHP codes and add HTML codes instead it works then. I think PHP foreach method has a code error, ...
-1
votes
0answers
16 views

Localhost downloading zip file instead of installing

I want to work on a school management system. I am currently using Wamp server. After all correct procedure of creating the DB, my localhost downloads a zip file instead of going through the process ...
0
votes
0answers
6 views

Translation working on staging site, not on live one

I’m in a bit of a pickle. I tried migrating a site to a live URL, and all of my translations disappeared. I made a small video to explain the issue: I used ALL-IN-ONE Migration to transfer the site. ...
0
votes
0answers
8 views

Admin user name not showing up in author dropdown

I recently moved my Wordpress site from GoDaddy to Hostinger. Now, my Wordpress user account (which is the admin) doesn't show up in the dropdown list of authors when I create a new page. My admin ...
0
votes
1answer
116 views

How to add/edit advanced custom fields on custom post type's WordPress REST API?

I have a custom post type called "notes" and also activated an Advanced Custom Field on that post type called "page_link". I want to add/edit the value of page_link using the REST ...
0
votes
0answers
18 views

How to merge the content of posts that have the same title?

Good evening everyone... I apologize in advance for my bad English, for any complaints go to google translate :). I need to merge posts with the same title and I don't know how to do it. The situation ...
2
votes
1answer
26 views

How do you use __experimentalLayout to give innerblocks alignment control and default layout?

As referenced in this issue ( https://github.com/WordPress/gutenberg/issues/33374) I want my custom block's innerblocks to have the default layout and alignment controls Like the layout toggle for the ...
0
votes
0answers
13 views

Block all plug-ins from initiating redirection upon activation?

Some Background Info It seems to have become increasingly common for plug-in developers to take the liberty of redirecting wp-admin to the respective plug-in's settings page upon activation of the ...
0
votes
0answers
9 views

I'm receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array

<?php /* Plugin Name: Flyp wp-json no cache Description: Disables the caching of /wp-json/ requests adding no chace headers to the response. Version: 0.1 Author: Nolte Developer */ // The ...
0
votes
0answers
21 views

Is it secure to use SMTP password in .php file in WordPress website?

Currently I am making feedback contact form without a plugin. Trying not to use plugins if possible. In action .php file there must be written server settings such as SMTP server, SMTP username etc. ...
0
votes
1answer
17 views

Show popover with url and option to open in new window

I am creating a custom block and I want to show a button which the user can edit the text of and I want them to be able to select a page/enter a link. I have this working but using URLInputButton does ...
0
votes
0answers
7 views

Auto-fill logged user username in the input area [duplicate]

I am trying to auto-fill the username in the input area when a logged user accesses the page. Added PHP code on the plugins for calling the WordPress function. <?php $current_user = ...
0
votes
0answers
14 views

Accidently changed the GUID

I accidently executed: UPDATE yemnc_posts SET guid = REPLACE(post_content, 'domainA', 'domainB'); instead of UPDATE yemnc_posts SET guid = REPLACE(guid, 'domainA', 'domainB'); How can I undo this? Is ...
0
votes
0answers
8 views

WooCommerce Query Product Titles

I am able to query and display a list of post titles using in AJAX, which works perfectly. However when I try to change to query product titles (WooCommerce) it does not work. How can I adjust my code ...
0
votes
0answers
5 views

implement custom roles in custom plugin

i am developing an Wordpress plugin which actually works quitte good ;-) But i have a requirement to implement user roles. So i am reading stuff about custom capabilities in wordpress. There is so ...
1
vote
1answer
36 views

How can I prevent wordpress from creating tag pages?

I use the built in wp tag functionality to group my posts thematically and then I use the WP_query to have the posts displayed according to custom design. I do not need the tag pages created by ...
0
votes
1answer
29 views

Wrap template code with shortcodes

A client of mine wishes to use the plugin Content Locker. The template in question doesn't have a content area the client can use and hence I need to use the do_shortcode function. I know how to ...
0
votes
1answer
27 views

How to create custom popup in shop page on every loop products?

I'm trying to create custom popup box for all loop products in woocommerce shop page. But it's not working, i think it need some code correction, functions.php code add_action( '...
0
votes
1answer
24 views

How to change my 3000 Published post status to Draft using PHPMyAdmin

I have to change my all 3000 published post status to draft. one way to do it one by one or another option is to select bulk post... but bulk selecting also takes a lot of time because I have around ...
0
votes
1answer
27 views

How to hide "Shipping" label from Woocommerce cart page

I am trying to hide/unset Woocommerce "Shipping"label from the cart page in order to have more width for the shipping calculator. Is there any way to hide only the word "Shipping"...
0
votes
0answers
13 views

Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?

I plan to add in the footer of my website 4 menu areas (such as "About us", "Services", etc.), each area with 3 or 4 links. In terms of performances, should I use widget ...
0
votes
0answers
9 views

Send an e-mail on address with the link with disliked post

I have an issue with sending an e-mail on address with the link with disliked post. So, when a guest click on "Dislike" button, link of the post must be submitted to a given e-mail address. ...
0
votes
0answers
23 views

escape html in jQuery for WordPress

I am a bit confused in properly escaping html and attributes while preparing HTML string in jQuery. This is my current approach $.ajax({ type: 'POST', success:function(response){ var ...
0
votes
1answer
60 views

Main query disturb pre_get_post by category query

I've an archive page with custom post sorted by a custom field. I have two buttons that apply a filter by custom category. The result is not as desired. The correct number of results comes out, but ...
0
votes
0answers
10 views

Get the taxonomy value in the post loop inside the archive page

sorry for my noob code but it feels close to what I am trying to achieve. I need help on displaying the taxonomy values inside the archive post loop. I have a custom post type called "plays" ...
0
votes
0answers
16 views

Adding a new hidden field based on a condition in Ninja Forms

I am rendering Ninja Forms dynamically. By dynamically I mean the shortcode is coming from an ACF field, so at different pages, there would be different forms or multiple different/same forms on the ...
0
votes
0answers
6 views

PHPS source file - 403 Forbidden You don't have permission to access this resource [migrated]

Hi I am trying to view a .PHPS source file on Ubuntu 20.04.3 Apache 2.4.41 PHP 7 server but when I view the .phps file in the browser I get this message - 403 Forbidden You don't have permission to ...
0
votes
1answer
20 views

Please help! I have a problem with getting wordpress databas

The file path is: wordpress/​wp-content/​themes/​neve/​index.php "index.php" content is: <?php global $wpdb; $result = $wpdb->get_results ( "SELECT * FROM users WHERE username = '...
0
votes
0answers
11 views

Sharing a logged in session with a custom subdmain site?

I'm trying to share a Wordpress login between a typical Wordpress installation and a secondary (custom/PHP) site that will be on a subdomain of the Wordpress site. A user should be able to register on ...
0
votes
1answer
30 views

Find the Post ID of a post from another website

I wanted to get the Post ID of a post from another website, but it was not in the url, but it was in the Response Header. When I output the Response Header, the Post ID does not appear on the output. ...

15 30 50 per page
1
3 4
5
6 7
2212