Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [development]

The tag has no usage guidance.

0
votes
0answers
12 views

WordPress with Web3Js

I am coming from a Node.Js environment and recently tried WordPress for fun. I have been able to create dAPPS with Node.Js by using ethereum's Web3.js and by connecting to an INFURA node. I am able ...
-1
votes
0answers
20 views

what is FS-METHOD?

1 as long as you have one (1) site www-data is Ok, but when you have more sites you should never give them the same user, regardless if using the direct FS_METHOD in your wp-config or not. Why? If ...
-1
votes
0answers
19 views

Moving a site I made in html ..Css .. javascript to wordpress

Well 8 years development after inundated university years ...hmmm then a car decided to take me out while walking ..result a head full of scars ..5 years converlessing .. but all the years coding I ...
1
vote
0answers
11 views

Woocommerce custom search

I want to build a search form on the homepage where people can search by Product Name Product Category Price range I have found a few results, but a lot of them are filters which display products. ...
0
votes
0answers
12 views

How to filter error message when requesting more product quantity than is available

I'm trying to filter the message that shows WooCommerce, when the product reservation is not allowed. The message that is displayed when you want to add in the cart more stock than is avaiblable. ...
1
vote
1answer
19 views

My plugin wants to update another plugin

I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin ...
0
votes
1answer
3k views

how to open my existing site on mamp

I've got mamp working but can't access my site. I created the DB cheaptubes_com, a user and I successfully imported the DB. I have a copy of information_schema DB but can't find how to import it and I ...
2
votes
1answer
367 views

Are there any security issues with setting the WP_INSTALLING constant to true?

Running Wordpress 4.1 on a CentOS 6.5 instance through VirtualBox as a dev server. When logged in as admin on both ssl and non-ssl sites Wordpress curl requests are taking a long time to run (45+ ...
0
votes
1answer
22 views

I am trying to make a field show and save from quickedit screen

I have a select box with some options. It appears in the normal product edit screen with the following code. function we_skroutzxml_custom_availability() { woocommerce_wp_select( array( ...
0
votes
1answer
412 views

Is it possible Different templates of products for specific category in WooCommerce?

For example i have category Hostels & Bikes, and one template for Hostels single product template, but for category Bikes i want to have different single-product.php template, how to implement ...
1
vote
1answer
42 views

Can I develop a WordPress site without a domain?

I currently have a wix.com website and want to make the switch to WordPress. I'm really confused about how I do this or whether I can? But in the meantime, I want to start building my site (as I am ...
0
votes
1answer
401 views

dynamic image path within a javascript file

I need to dynamic the image path to my theme file within a javascript file. How would I go about this? address.forEach(function(address){ var markerGeoCoder; markerImage = {url: window....
0
votes
0answers
13 views

Can we execute a function when Gutenberg block is added?

I'm wondering if there is a way to execute a function when a certain block is added in the editor, but not each time we edit the block. As far as I know the only functions we can specify are edit and ...
0
votes
0answers
6 views

Is there a way to execute a function whenever Gutenberg Blocks are rearranged?

i'm having the following problem: I have created a grid component which uses a binary packing script (packery by metafizzy) to fit its child blocks depending on their size. To improve the editing ...
0
votes
1answer
468 views

Merging development site with live site

Earlier this year I built a client a large website for their organization. After that site was finished and live on the web (not on our development server anymore) they wanted the company I work for ...
0
votes
2answers
50 views

Img alt tag showing different value then entered

I have a WordPress website "https://drgadyabramson.com" I am optimizing the website for better ranking. But the problem is Yoast SEO showing me that "The images on this page do not have alt attributes ...
0
votes
0answers
11 views

A WP dev site that displays content from a live site's database but cannot write to wp_posts?

Is there a way to setup a Wordpress site that uses another site's database but cannot write to specific tables (like wp_posts)? Basically I'm trying to set up a testing site that I could use to test ...
0
votes
0answers
38 views

wordpressPCL user meta

I'm using the wordpressPCL library to create new users. I need to insert Meta fields as well, how should I structure this field? private static async Task InserUser() { ...
0
votes
0answers
24 views

Add fields to edit in custom widget

I'm coding my first theme. I want to have class event editable in Admin Panel as a widget. I don't know how to declare this widget in functions.php to keep my hierarchy and class names. <div class=...
0
votes
0answers
25 views

New theme development while keeping existing theme live

Due to a PHP issue I want to update my website which I built through Word Press to a new theme. Building the new site may take me a month or so I want the current one to remain live. However once I ...
0
votes
0answers
45 views

wp_editor not working in external file

I am pulling info from my Wordpress database into a dropdown. When an option is selected from the dropdown, a div is populated with a form from another page. The page gets the info from the database ...
2
votes
1answer
5k views

woocommerce_before_calculate_totals in woocommerce 3.0

I recently made the jump from woocommerce 2.7 to 3.1 I'm having issues with the woocommerce_before_calculate_totals hook on the below function. function calculate_embossing_fee( $cart_object ) { ...
0
votes
1answer
697 views

Maximum lifetime for nonce

In our project we allow users to buy a coupon ( WooCommerce product ) for some service. We save every coupon as a custom post type with all the customer data inserted during purchase. We then via ...
0
votes
2answers
1k views

Wordpress delete cookie

First sorry for my bad english, i'm french. I need to make my website GDPR Friendly, so for this I use the plugin 'RGPD' who give me the possibility to check or uncheck multiples types of cookies. ...
3
votes
4answers
507 views

GPL and plugins

The Plugin developer center says "Your plugin must be GPLv2 Compatible.". But I found that the Topsy plugin is under GPLv3. http://www.gnu.org/licenses/rms-why-gplv3.html states that GPLv2 and GPLv3 ...
53
votes
4answers
34k views

Is there a flowchart for WordPress loading sequence?

So like WP must load series of files from, index.php -> ... -> wp-header.php -> ... ->functions.php ...and so on upon execution. Also there must be a similar flowchart for functions ...
2
votes
1answer
303 views

Is it possible to use Gutenberg on the front-end?

Now that WordPress 5 has the new Gutenberg editor, I'm interested in the possibility of using it programmatically on the front-end (for example as as a rich-text editor for bbPress). In the past I've ...
6
votes
1answer
494 views

Running Gutenberg React in Development Mode

Is there a way to enable WordPress to run the non-minified version of React while developing Gutenberg blocks? I am receiving an error from React while learning to create Gutenberg blocks. react-dom....
0
votes
0answers
13 views

Groups plugin: Specific users can edit specific pages

How I can allow only specific users to edit specific pages? With code or the Groups plugin (by itthinx), Im not allowed to use another plugin. Is that possible? I ended up to this solution: ...
0
votes
0answers
63 views

Featured posts reordering without plugin - Newspaper theme

I am using Newspaper (child) theme where the 2 carousels display the 11 featured posts (first 5 in the main carousel and the following 6 in a secondary carousel). We used to use a plugin to reorder ...
1
vote
1answer
71 views

How do I unlock a post programmatically?

I can use wp_set_post_lock to temporarily lock a post so that only I can edit it. I can use wp_refresh_post_lock to refresh that lock. I can use wp_check_post_lock to check whether a post is locked. ...
0
votes
2answers
53 views

Wordpress Staging Site

Problem: I do not want to develop (new features) of a wordpress site on production. So I set up an staging server where the same installation of wordpress is running on. So while I develop on the ...
1
vote
2answers
41 views

Best way to start becoming a wordpress developer

It's my mission this year to become a wordpress developer. I've been using wordpress for years as a frontside user but I now want to be able to develop wordpress sites from themes to functionality and ...
0
votes
0answers
23 views

Storing video thumbnails

I need help. When I add new post with video I want to download the thumbnail of the video to wp-content/upload. I tried using wp_handle_upload() function but i am not sure if it is correct and i am ...
0
votes
1answer
28 views

When should I not use WordPress? [closed]

I am fairly new at writing code and have been working mainly with React. Recently, I have been reading a lot about WordPress and it seems like this is actually the best option currently out there for ...
2
votes
2answers
547 views

How to add usermeta to “Notice of Email Change” email message

Hoping someone can help. I am trying to change the "Notice of Email Change" text within the email you receive when updating an email address. Here is what I have so far add_filter( '...
6
votes
3answers
442 views

Loading media on local WordPress using remote database

For my theme development purposes I have a local WordPress installation that I run from a VM, accessed via, let's say, http://local.app. I also have a remote version of the site on a staging server, ...
196
votes
27answers
56k views

How to: Easily Move a WordPress Install from Development to Production?

I do development on one box and use a second for production. Right now I just dump the database and then do a find a replace for the URL changes; then copy over the files and import the new SQL. Are ...
1
vote
2answers
37 views

Theme Development Admin Area [closed]

I think I start to develope themes now (after using WordPress for years now). I have a question: How can I integrate a custom dashboard like this I found here: Thank you for your help. Greetings ...
0
votes
0answers
13 views

Start Post Edit Page With All MetaBoxes Closed

Is there a way to have all the metaboxes start out collapsed (i.e., closed) when editing a page? Either a plugin, function, piece of javascript code?
0
votes
0answers
40 views

How to remove a cookie

First sorry for my bad english, I'm french. I have a WordPress website and I need to make it compliant for GDPR. So I need to find a way to remove cookies, I make it with google analytics but they ...
12
votes
2answers
6k views

How can I configure Docker for developing and deploying a custom theme?

I am getting started with Docker and I'm still new to professional WordPress development practices. I would like to set up a Docker development environment (on my Mac) so that I can do custom ...
1
vote
2answers
1k views

Force user to login in home page

I have a custom login form working properly on my home view. Nice. But what I want is when user try to view some page, be redirected to my home view instead of wp-login. Im trying to do this way: ...
0
votes
0answers
109 views

Custom gravity form submission plugin is submitting for data twice!

So i created a custom plugin that submits an inline html form through gravity forms api. Everything works but for some reason the form is submitting twice and therefore i am getting duplicate entries. ...
0
votes
0answers
164 views

Running local copy of an old Wordpress site on MAMP

Running local copy of an old wordpress site on MAMP Hi there, I need to update some stuff on an old WP site, which I plan on doing locally. I am able to run the latest default version of Wordpress ...
4
votes
3answers
18k views

No Error Log File, no debug info

My error when writing a plugin for uploads and yes, I can debug. But it just jumps directly from this line to destruct the end of my wp-config.php EDIT: // Enable WP_DEBUG mode define('WP_DEBUG', ...
0
votes
1answer
13 views

Dev and prod on the same database- dev version active for IOS

I'm looking at a problem on a WordPress site I didn't build and the company that did are no longer operating. The site is fairly basic with no user membership this etc etc. The site holds all its ...
0
votes
2answers
303 views

Possible to put header-{your_custom_template}.php in subdirectory?

I just learned that it is possible to create differtent header.php files in your theme by creating a new File and calling it something like: header-myname.php. To call, i would use the header ...
9
votes
5answers
12k views

WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins

I have multi-author website and I am not very comfortable for allowing all members to enter SEO details in the posts they are publishing. I would like this would be visible only to Administrator of ...
2
votes
1answer
671 views

Created Widget Not Showing up on Admin Panel

I am following a tutorial on wordpress dev, and I try to create a basic widget from the plugin, So I have put those three files in my plugin directory: main plugin file (zero.php): <?php /* ...