Questions tagged [development]

The tag has no usage guidance.

-1
votes
1answer
3k views

Replace existing pages with new pages, keep menu links

I basically want a plugin or method that would give the same functionality as 'Enable Media Replace' but for replacing pages and posts, instead of redirecting, or manually editing. I've searched high ...
0
votes
0answers
15 views

How to finish Wordpress websites faster [on hold]

Hello we are a small start-up company consists of 3 developers we develop webapps using wordpress We develop website very slow for example we developed this webapp http://zumra.start-solutions.net/ ...
0
votes
2answers
12 views

Client viewing before deployment

I'm currently building a site on my local computer. I will transfer the finished product onto my client's new host/domain. Before he chooses this, what's the best way for him to view my current ...
8
votes
5answers
2k views

WordPress local development environment [closed]

Everything on WordPress is primed for a production server, and hardly mentions info on development stuff. I want to setup a WordPress blog locally so that its good and ready before it goes live. Are ...
0
votes
1answer
18 views

How can I setup a development environment which auto refresh page when code have changed [closed]

When develop a website with Wordpress, I spent a lot of time to change small pieces of code like CSS, HTML element. Each time I did that, I needed to do so many steps: Change the code Save it Switch ...
0
votes
1answer
726 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
1answer
20 views

Can I upload my self hosted WordPress website on GitHub as a project? [closed]

I have searched this question a lot Can we call our WordPress Website a project? and Can we somehow upload our Wordpress Website as a Project on Github? I have an e-Commerce based website, which ...
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. ...
2
votes
3answers
2k views

How to get Plugin Slugs?

I am trying to get the 'slug' used for each plugin installed. I have not found a good solution for this. I have created this function to get all the slugs and return them in an array. I am hoping ...
0
votes
0answers
20 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
vote
0answers
12 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
14 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
4k 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
23 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
437 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
418 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
15 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
7 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
477 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
58 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
12 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
46 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
27 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
48 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 ) { ...
3
votes
4answers
508 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
35k 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
421 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
539 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
65 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 ...
2
votes
1answer
91 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
42 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
576 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
465 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, ...
197
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
39 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?
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
176 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 ...