All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

Programmatically generate new pages for a site based on page template and content elements accessed via DB

I 'd like to programmatically generate new pages for a site - the textual and visual components of the content are stored in a DB, this includes the names for the different locations the pages are ...
0
votes
0answers
20 views

How wordpress handle urls present in db for external wp-content directory

I have a site which I moved from one server to other. In source site the wp-content was external and maintained by hosting provided. After migrating it to new server I changed all the urls and ...
0
votes
2answers
36 views

How to create multiple database tables on plugin activation?

I have an activation hook to create 2 new database tables that don't exist, only the second table is created from this code: public function add_tables() { // Global $wpdb ...
0
votes
0answers
27 views

Remove special characters from filenames

I have a website that i transfered recently from one host to another. Unfortunately when i did that, i noticed that all the images that had special characters in it lik (é, è, à, ...) weren't showing ...
0
votes
0answers
13 views

Voting system database connection

I am trying to implement a polls plugin in WordPress. I have to import previous questions and answers from previous polls existing in a database and implement new questionnaires and voting systems. I ...
0
votes
0answers
21 views

WPSiteSync & Advanced Custom Fields

I'm using the plugin WPSiteSync which can copy posts from one wordpress install to another. It works well however I’m using Advanced Custom Fields with a Relationship field. When it copies over posts ...
0
votes
0answers
38 views

Accessing data from Google Cloud Datastore in Wordpress site

I want to access data stored in Google Cloud Datastore (or possibly other Google database option) in my Wordpress site. I have tried to find information about this without much luck. The alternatives ...
0
votes
1answer
37 views

How retreive saved data from gravity forms in my template?

I want to display the completed gravity form values in frontpage using entry id and form id. I know about this but unable to retrieve values GFFormsModel::get_leads($form_id) returns a list of ...
0
votes
0answers
30 views

Using Filters to modify contect - DB query results alwats appear fist

thanks to help provided by this forum, I have managed to develop a plugin that uses a database of UK towns & postcodes - using the URL parameters to build up a query & display the results. I'm ...
0
votes
0answers
30 views

Create a custom table with column as an index

I want to create a table in my wordpress database with a column that is an index. But I can't seem to make it work with this code: $table_name_t2mtokens = $wpdb->prefix . "t2mtokens"; $...
0
votes
1answer
27 views

Issue running db create table query from static method

I suspect the way I call the table creation function below is the culprit for no table creation (nothing shows in the debug log or query array). Can anyone see my mistake? // main plugin file, ...
1
vote
1answer
13 views

How can I perform high-level database merging for WordPress within continues delivery?

I've a bit of a problem. I'm currently trying to realize a WordPress development process regarding to one of my old question / topic: https://stackoverflow.com/questions/48890019/wordpress-...
-1
votes
1answer
30 views

User register hook can't access form request

I'm trying to add a few custom field to the registration form using the code below. After registrations customs fields with keys are created but they don't have any value. I think that my $_POST['...
0
votes
0answers
24 views

Version control and database issues with intertwined data

I was looking into VersionPress and It looks really good pretty much exactly what I wanted but it explicitly says on their website Currently, VersionPress is a Developer Preview and should not be used ...
-1
votes
2answers
116 views

Problem of encoding characters (apostrophes) in my posts publications

I currently have a big apostrophes problem when my articles are published on my website, because for an example of a word like "l'associé", my article is published with characters that replace the ...
0
votes
0answers
15 views

Survey plugin recommendation with symbol pictures?

I would like to ask this question again, and ask if maybe since 2012 there is change of plugin recommendation. What is a good plugin to do surveys for wordpress? Explanation: I have received many ...
0
votes
0answers
20 views

How can I ascertain that my previously hacked WordPress site are now free of malicious code? [duplicate]

I am almost certain that someone cracked my FTP password using Bruteforce attacks. After that, they injected malicious code in my 3 different websites. Two are hosted on WordPress and one is entirely ...
0
votes
0answers
33 views

Get the last post ID

I'm trying to understand the ID mechanism in wp_posts in WordPress. Whenever I add a product (woocommerce), page, or an image, they are recorded in wp_posts and assigned an incremented id. Let's say, ...
1
vote
0answers
44 views

Delete query not working in plugin

<?php if(isset($_POST['deleteValues'])){ global $wpdb; $table = $wpdb->prefix . 'addkeywords'; $where = array( 'id' => $id); ...
0
votes
0answers
139 views

Failed Jetpack Update Destroyed My Wordpress Website

All was not lost, fortunately, but because I had an old copy of the website and database and used a local server I was able to determine the culprit behind the loss of all my recent changes. I was ...
0
votes
0answers
68 views

Woocommerce import products with serialized data

I am creating a Woocommerce shop that makes use of the official Measurement Price Calculator. This plugin seems to store its data serialized in the database as when I export a spreadsheet of products ...
0
votes
1answer
56 views

DB Query not working in Plugin

I am working on a plugin. And I want to create a table via the plugin. So I am trying execute following SQL Query. global $wpdb; $createSQL = " CREATE TABLE `". $wpdb->prefix ."...
1
vote
0answers
19 views

How to remove traces from widget during uninstallation

I have a small plugin, which registers a custom widget and now I am wondering how to remove all traces of this widget when the plugin is removed through the administration. If I look in the database ...
1
vote
4answers
60 views

If I delete plugins via FTP are settings kept in DB?

When I delete plugins via ftp (meaning all its files recursively) does WordPress remove its settings from the database? I want to delete all plugins on one of my websites and reinstall them, since I ...
0
votes
0answers
269 views

PHP message: WordPress database error Deadlock found when trying to get lock

I'm trying to fix this deadlock issue on my site without luck. I'm using WordFence and when I disable it, the error is gone. I disabled the plugin by removing it completely and reinstall it again, but ...
0
votes
1answer
104 views

How can I store user preferences in WordPress and retreive them later?

I have a WordPress website where I want to give users some options to sepcify how they want to see the site. For example, they can choose from a given set of fonts, menu color etc. I am assuming this ...
2
votes
1answer
57 views

Wordpress register_activation_hook table creation not working

I've created a simple Class for my wordpress plugin. The main file looks like this: <?php /* * Plugin Name: Codes * Description: Generates a coupon code after checkout * Version: 0.1.0 * ...
0
votes
1answer
37 views

Assign all Post in Wp to a specific Category

I Cleared off all data in wordpress wp_postmeta, wp_terms, wp_term_relationship, wp_term_taxonomy. I have post content of 50k. Is there any way I can assign all the 50 posts to a new Category I just ...
1
vote
1answer
844 views

How can a Firebase user registration and login be integrated into a Wordpress site?

We have an app that uses a Firebase database for users and they can register and log in using the app. I need a way to get this functionality in the website for the app but the website is a ...
0
votes
0answers
68 views

Enable plugins that are “not supported”

I just create a clone of a website with All-in-One WP Migration, the original site being hosted on wordpress.com. Since wordpress.com is a typical managed WordPress provider, it allows only for a ...
1
vote
0answers
31 views

How to change wp prefix for custom post type only?

I have Two domain for e.g example.com (Database prefix wpone_) demo.example.com (Database prefix wptwo_) Database name: myrestaurant Database is the same for two domain just only prefix different ...
0
votes
1answer
70 views

Separate database for a wordpress plugin

I'm building a wordpress plugin that I plan to distribute. It requires more than 20 database tables. This seems like A LOT of additional tables to add to the wordpress database. Is there any value in ...
0
votes
2answers
37 views

Is there a rule for wordpress plugins developers to not do any database changes upon update?

I am using composer to install plugins to my sites, but is worried that composer update will crash my site for those plugins that might issuing database update when there's new version Suppose, in a ...
1
vote
1answer
39 views

What kind of data is that?

I'm going to use a plug-in in WordPress called RegistrationMagic. And I need to access the data saved for further use in front-end for a reason. I was looking the tables in MySQL and found the data ...
0
votes
1answer
100 views

Many to many relationship for variable products

I am using variable products within my store and I want to have the same child product variant show up on multiple parent product pages. For example if someone were buying letters (eg; "a,b,c ... z" ,...
1
vote
3answers
135 views

How do I check what plugins are enabled via the database?

I'd like to query the database directly, and determine which plugins are enabled. How can I do this?
0
votes
1answer
575 views

errno: 150 “Foreign key constraint is incorrectly formed” [closed]

What's my problem with my foreign key reference? This table is not being created? <?php /* ** Plugin Name: *** ** Plugin URI: *** ** Description: *** ** Author: *** ** Version: *** */ class ...
0
votes
1answer
38 views

Is it a good practice to use wordpress database to store pages contents which loading to page dynamically?

I have a wordpress instance with 150+ pages and a plugin. According to the page URL, plugin will bring contents(text and images) required for that page from a database. Can I use existing mySQL ...
0
votes
1answer
116 views

External wpdb connections in different plugins on single page

I am writing plugins that connects to an external database, connecting to the external database using the wpdb class: $mydb = new wpdb('username','password','database','localhost'); $rows = $mydb->...
0
votes
1answer
41 views

How to keep variable `$post` to using in another file

I create a plugin to quick payment. When user click button Quick pay. It show popup call views/display-popup.php. In this file, I declare variable $post. <?php global $post; $id = $post-&...
0
votes
1answer
1k views

How to add Edit | Delete button on rows?

I want to render columns with actions. When hover on row, Edit | Delete links show. Problem at function column_name($item). I don't know why don't run to this function. I tried to add wp_die() ...
-1
votes
2answers
713 views

Duplicator live to wamp https to http

sorry for my english... So I want to get my data from a https live site back to localhost. Using duplicator plugin works fine exept that I run (especially in Chrome) to a problem with absolute setted ...
0
votes
1answer
26 views

Does deleting a Plugin via the WordPress admin 'completely' remove the code?

What I really mean to say is - does deleting a WordPress Plugin leave remnants in the WP database? The reason I ask is because I've installed and uninstalled a bunch of Plugins over the years and am ...
2
votes
2answers
2k views

Custom database table for plugin not creating on activation

Let me start by saying I know there are other posts about this, and a lot of documentation is available for this topic, but none of these resources have helped me to solve my issue. I'm a beginner at ...
1
vote
1answer
30 views

How to write one comment and publish on every post using database or plugin?

I have about 500 posts published in WordPress now I want to add one same comment on every post. How to do the by the database. I search about it, but not a good luck. thanks in advance for the help.
1
vote
1answer
751 views

How do I network enable a plugin for a multisite install via the database?

The title pretty much sums up the question I have. If you want background then read on. My multisite install uses an AD integration plugin to log people on. I just upgraded PHP to the latest version ...
0
votes
0answers
24 views

Database error when user logs in

We just moved our database to new server... Everything is working good.. But when the user logs in we gen an error of database... This is how it looks and this is the error after user logs in and ...
0
votes
2answers
41 views

one admin for 2 wordpress websites

I was trying to find an answer since many days. Can It be done that => Can we have one admin panel for 2 different wordpress sites ? 2- Can we have 2 different wordpress websites that uses the single ...
0
votes
1answer
5k views

Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]

My objective is to use Ninja Form for data collection at various places all over my website. But once that data is collected, depending on which form it came from and what data has been filled, I want ...
1
vote
2answers
2k views

Cannot login to ADMIN even after changing password in phpmyadmin

I have an old wordpress site which I haven't logged-in for 2 years. Recently I tried to log back in using the admin account but it wouldn't let me. Saying the password is incorrect. I tried to login ...