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
1answer
476 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
1answer
52 views

How to set up a development/staging site to make major changes to the theme then update on the live site?

I made a site a few months ago without using a development or staging environment. I just updated everything on the live site, which was fine at the time because the domain wasn't public. We were ...
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
2answers
72 views

How to create plugin in wordpress [closed]

How to create plugin in wordpress
0
votes
1answer
1k views

Order properties should not be accessed directly

This code: foreach ($order->meta_data as $row) { if ($row->key == 'tid') { $tid = $row->value; break; } } within the function function ...
2
votes
2answers
571 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( '...
0
votes
1answer
20 views

PayPall Button Data Issue

I've got a PayPal button with three text fields and my customers are able to complete transactions using the button but the text field data does not appear in the transaction details. I think the ...
1
vote
2answers
82 views

Debugging Technique Question re: functions.php

I needed to develop a technique to delete some data from the database. The technique will be part of a plugin at some point. For immediate results, I was editing functions.php on my local dev site, ...
-2
votes
1answer
137 views

Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?

Semantic Version has 3 digits for versioning of the code (1.0.0.), is Explicit Versioning with 4 digits (1.0.0.0.) and not 100% API focus a better approach for Wordpress or Drupal developers? https://...
1
vote
1answer
349 views

programmatically create posts from files in a folder

I have a folder named 'pdf' (with around 1000 pdf files) in my uploads directory, i would like to create a post for each file in the folder. I am not trying to import the content from the pdf but ...
0
votes
1answer
480 views

Local and live synchronized dev and production environment [closed]

First sorry for my bad english :) I'm a beginner of wp and I wonder how to manage/synch the follow dev environment : - Local and live dev (local server xampp and staging subdomain dev.mywebsite.ext) ...
0
votes
1answer
364 views

After WooCommerce-Update fucntion not working anymore

I got a problem and I am realy dying on this right now. I did the WooCommerce Update up to the major 3 version and straight to 3.0.2. After completet, updated the database. So far so good. My ...
0
votes
1answer
480 views

How To Show Different Footers For Different Post Types Pages?

I know I can add some codes using:- is_front_page But, I want to add different codes into footer of different post types. Then what can I use instead of is_front_page
2
votes
1answer
29 views

Version control for both Vagrant config and themes being developed [closed]

I have set up a local Wordpress development environment using Chassis (based on Vagrant), this needed a bit of tweaking to get it how I like, so I feel like I should have this under version control. ...
1
vote
0answers
323 views

Creating subfolders in the media library

I'm new to WordPress. As far as I can tell, there's no built-in way to manually organize uploaded media into subfolders. There are free plugins that enable categorization, but this does not affect a ...
0
votes
1answer
274 views

Help! Need a different logo on my main page from my other pages

First off I am not a coder and its my first time creating a website and using word press. I am having an issue with my Logo. It is very large and only would like to use this logo and size on my main ...
2
votes
1answer
35 views

What should I do? A multisite, a single website or many websites? [closed]

I'm working on a big website project, we have some time allowed to redo the website first. Currently, it's a multisite with 2 working sites, one is the landing page and the main content, the other is ...
0
votes
2answers
146 views

Cloning and syncing a WordPress website

I plan to bulid up a nice developer environment and for this I need to clone the actual running website to a 100% into a dev directory. I've now uploaded the same version of wordpress as on my ...
0
votes
1answer
21 views

how to insert gravity newsletter subscription form in template

i have created a template. i want to insert gravity form for newsletter subscription form in the middle of the page,content will be first name,last name,email id and subscribe button.And after click ...
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
2answers
1k views

Which functions in theme or plugin load first

I created a plugin to override a theme's function. As I learn that function in plugin loads first but I got an error Fatal error: Cannot redeclare wooc_extra_register_fields() (previously ...
1
vote
1answer
29 views

CSS Minification

Can someone help me understand the process that goes into employing CSS and JavaScript minification? I am going to be having some development work done on my site to speed it up and I need to know ...
0
votes
2answers
264 views

Creating WordPress staging environment software

The problem: When I develop a wordpress website the client first wants to see it before to upload it to his server/domain. Until now I work on my local PC but I have a lot of orders and the clients ...
0
votes
1answer
92 views

Move default page templates to sub directory

So I know there having custom templates in a sub-directory is a native feature introduced in 3.4. But I'm not talking about custom page templates here. I'm talking about the default page templates ...
0
votes
0answers
38 views

Site migration and how to write internal links with migration in mind

Hi Hope some one doesn't mind explaining this? I'm going to work on a replacement site while keeping the old one live, two questions here: How do I fool my PC to direct to the new installation? I ...
1
vote
1answer
461 views

Child theme works in local environment but is not working on remote

I'm working on a child theme of "colormag" theme. It works in developmet but not when I deploy it to staging. It means that changes I made in the child theme are rendered in local but are not ...
4
votes
1answer
380 views

Is there a limit on how much is customizable on WordPress? [closed]

I recently started a project in which I need to make some custom features to achieve the following goals from the client: A musician which needs to show his work, publish some articles, and sell ...
2
votes
1answer
1k views

Does Wordpress not use relative URLs?

The articles/posts I've read about migrating Wordpress between local/staging/live servers talk about having to migrating the URLs each time - is this true? Or can you simply switch Wordpress to use ...
0
votes
1answer
434 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 ...
0
votes
1answer
724 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 ...
2
votes
3answers
652 views

What actions affect files, DB, or both?

I'm looking into setting up a development -> staging -> production workflow, and the biggest issue so far is figuring out how to sync the databases. To this end, I'm trying to figure out exactly ...
3
votes
2answers
741 views

Trash bin for categories

Today I accidently happend to delete my category right after I've noticed there is no trash in categories. I wonder is there any way to include trash bin for it? I've made a little research over a ...
0
votes
2answers
48 views

Best way to move a site to a subfolder for testing purposes?

I have to make several changes to a website, and I'm willing to setup a copy of the current one on a subdirectory, on the same server. I.E. if my site is www.example.com, what I'm trying to do is to ...
1
vote
0answers
337 views

Localhost to Staging to Development Dynamic WP-CONFIG

I am trying to setup 3 environments: Localhost, Staging and Development. The issue is that each environment has its own db. We want to have ONE config file which will dynamically change the Db ...
1
vote
2answers
74 views

Setup 3 Sites To Connect To 1 Database and Share Data

How do I setup 3 different Wordpress installations on 3 different servers, all of which connect to a single database and also share the same data? I'd like to set up 3 different servers. One for ...
1
vote
1answer
2k views

How to proxy local WP uploads folder to live site

Stack: MAMP PRO on OSX 10.11.5 (El Cap) Scenario: I'm developing a site locally, and there is already a live version of the site online. Rather than download all 4gb of the uploads folder, I'd ...
0
votes
2answers
58 views

How to put a site offline, including images?

In the past my organisation has had some problems where a development copy of a site was cloned (through Installatron in cPanel) to a new hosting account, but the new (live) copy of the site had some ...
-1
votes
1answer
78 views

How to answer, and we aren't using Wordpress to manage your site? [closed]

This might be more of a meta question but thought I would give it a try on the main site first. I am in charge of a technology group at a very large company. We use a lot of vendors and do a lot of ...
0
votes
1answer
58 views

How to keep a CPT stick to specific position?

I have created a CPT (esp-publicitarios) using Metabox plugin with the following code: add_filter('rwmb_meta_boxes', 'elclarin_register_meta_boxes'); function elclarin_register_meta_boxes($...
0
votes
1answer
226 views

How to call a widget in a loop at a specific iteration value?

On the index page of my website. I want to display a widget in the third position. I am calling the widget through "the_widget( 'Widget Name' );" code. Now the problem is, since it doesn't return ...
0
votes
1answer
27 views

Display ads by location [closed]

I have recently purchased a WordPress theme,and built a website with directory listing. On the Homepage there is a listing with locations, and at the moment they are listed in ascending order. I have ...
0
votes
0answers
46 views

Why the output of an image gallery plugin is not displayed into a page of my custom theme?

I am pretty new as WordPress developer and I am going crazy with a theme developed by myself starting from 0. So, at this link you can download the entire theme so you can see in the details the ...
0
votes
0answers
56 views

One WP Database outside localhost and two connections

I would like to ask for help with this problem. I have two places where I have the same WP. 1) Test site - own domain, hosting and DB - here is stored database, so siteurl is here, example: test.com ...
-2
votes
1answer
33 views

Can anyone tell some online tuts for plugin development for beginner? [closed]

I am new to WordPress Theme development. I want to learn plugin development.
0
votes
1answer
60 views

How should I go about registering JavaScript that isn't a file? [duplicate]

For a plugin I'm creating it generates custom JavaScript that should be executed in the footer of the page. Being that it's custom JavaScript, I can't simply put it in a file and register & ...
0
votes
1answer
58 views

Error in establishing a database connection in wordpress?

I have a wordpress website. Sometime it shows error in establishing a database connection. When i restart mysql server, it started working again. Can anyone tell me what is the resons for this and ...
0
votes
1answer
41 views

Theme Dev | Convert Template to Theme

What is the solution in theme development for section in this template Home Page so user can edit from admin panel. "Main Features" Section, at bottom of slider, it says "Strong Structure", "Global ...
0
votes
1answer
69 views

How to access my WP site locally and publicly? [closed]

On my wordpress server I have a Q&A form set up on my local network, but it can only be accessed publicly, how can I access it from home. Wordpress server on local network WordPress Address (URL) ...
0
votes
1answer
68 views

Wordpress error on my website

Hey guys I launched a recently built website for my client and everything seemed to be working fine, but recently whenever I try to edit anything, add a new page, delete something, etc. I get a fatal ...
0
votes
3answers
54 views

Right procedure when you develop a WP Website for a client

i don't know if this procedure could be incorrect while you develop a WP website for a client, but i worked like this for years: create a database and sub-domain on my server install Wordpress and ...