family ==> member ==> details
Table family has the parent record
Table details has the child record
the row fails to insert into table member
The database is named directory…. not wp_testsite_db
[02-Apr-2022 03:55:51 UTC] WordPress database error Table ‘wp_testsite_db.member’ doesn’t exist for query
SHOW FULL COLUMNS FROM member
made by do_action(‘directory_page_wpda_wpdp_1_1’), WP_Hook->do_action, WP_Hook->apply_filters, WPDataProjects\WPDP->manage_project_page, WPDataProjects\Parent_Child\WPDP_Parent_List_View->show, WPDataProjects\Parent_Child\WPDP_Parent_List_View-
How can I fix this?
]]>x_data:
several columns, some with ids and id/name lookups, but for simplicity I am leaving pout most of it so it does not get too confusing, hopefully.
x_endowment:
CREATE TABLE x_endowment
(id int(10) NOT NULL auto_increment
,name varchar(255) NOT NULL
,PRIMARY KEY (id)
) ENGINE InnoDB DEFAULT CHARACTER SET utf8 COLLATE=utf8_general_ci;
x_endowment_nm:
CREATE TABLE x_endowment_nm
(id_data int(11) NOT NULL
,id_endowment int(11) NOT NULL
,PRIMARY KEY (id_data,id_endowment)
) ENGINE InnoDB DEFAULT CHARACTER SET utf8 COLLATE=utf8_general_ci;
In the data project pages:
x_data, x_endowment, x_endowment_nm set as type “parent/child”
In the table options for x_data:
type: n:m
source column: id
target table: x_endowment
target column: id
relation table: x_endowment_nm
table options for x_endowment:
none
table options for x_endowment_nm:
type: 1:n
source column: id_data
target table: x_data
target column: id
type: 1:n
source column: id_endowment
target table: x_endowment
target column: id
type: lookup
source column: id_data
target table: x_data
target column: id
lookup: title
type: lookup
source column: id_endowment
target table: x_endowment
target column: id
lookup: name
What I am getting: BE-Editing of x_data with the created WP Data Access page more or less works, meaning: the relation form below the normal fields appears. However, I am not getting the available rows from x_endowment, I can only create new rows, which then get a new row in x_endowment and a new row in x_endowment_nm with their corresponding ids.
What I was thinking of getting: being able to choose from the pool of already existing x_endowment rows and assigning them to the x_data rows, whereas x_endoement_nm holds the info about those. So I have a pool of x_endowment entries which can be reused and each only exist one time, being able to assign them to multiple x_data ids – or the other way around if you will.
I am relatively new to relations with a junction table, let alone WP data Access, so could somebody please bring some light to my rather hopeless situation?!
Thanks a lot!
]]>I’ve already created two different post types:
1. Products
2. Providers
Products include the name of the product, a short name for the product, a unique SKU for each product, and a tag (Durable goods, perishable, etc).
Providers is a list of stores.
I need to create a metabox on the Provider admin page that populates a list of all products, grouped by tag, with a text box to enter pricing.
So below if I go to edit a provider named Joe’s Hardware, I would like the following to appear:
Durable Goods
Oven [PRICE] (Using this to represent a text box)
Refrigerator [PRICE]
Dishwasher [PRICE]
Perishable Goods
Lilly of the Valley [PRICE]
Carnations [PRICE]
etc…
The idea being that if and when I add a new product, ALL provider pages also get new fields to match.
Would I be able to echo out an array of the Product custom post types and also echo them as part of a variable/field name on the Provider page somehow?
Thanks in advance!
]]>We would like to create a searchable disposal database. In this database users would:
1) search for a product they would like to dispose such as batteries.
2) the search results would display about a paragraph or so worth of content about proper disposal.
3) If the product cannot be thrown away then we would like them to see a list of locations (ie Household Hazardous Waste) that accept the item, and possibly a location map.
For administrators, If a new facility opens up, or changes what products it accepts then instead of opening up each product article, I would rather have them change what a facility accepts by clicking on checkboxes.
So this would be a many to many relationship that I am trying to model. Are there any wordpress plugins out there that will help?
]]>Example: Custom post type “Dogs” with custom fields group “Pedigree.” Add a new relation field called “Father.” Choose “Dogs” as the post type it links to. Limit it to dogs with male gender (another custom field). In the editor you could then choose from other male dogs as the father. They should be sorted alphabetically.
https://www.ads-software.com/plugins/types/
]]>For example:
Create custom post type – > Classic Movies
Create Custom Taxonomy – > Actors
Add to ‘Actors’ custom fields: born, died
I have been able to do most of it, however Types only lets me add the Actors custom fields one by one to the terms in the Actors taxonomy, not to the whole taxonomy, and even after adding them I can not see anywhere to edit the information in the field.
I would like those custom fields to appear on the ‘add new’ screen for the taxonomy.
https://www.ads-software.com/plugins/types/
]]>https://www.ads-software.com/plugins/types/
]]>If we are talking about Movies & Actors i would like to add Genre.
Like this:
Genres
Thriller – Movie A
Action – Movies A, C
Romans – Movies B, C
…
Movies
Movie A with actors 1, 2, 3, 4
Movie B with actors 1, 2
Movie C with actor 4 & director 1
…
Actors/Directors
Actor 1
Actor 2
Actor 3
Actor 4
Director 1
Is this possible? Running on an WPMU with one “start” and 3 “sub” pages.
All the best
.m
https://www.ads-software.com/plugins/cpt-onomies/
]]>The shop has several categories, ie Wedding Rings, Gold jewellery, One Off Pieces, Elegant Textured etc and within each category is a product type, ie Rings, Necklaces, Earrings, etc.
I want to display the product type as a submenu of the product category but only showing the product type that belongs to that particular category. For example the menu item ‘One Off Pieces’ and the menu item ‘Elegant Textured’ both have a submenu of product type ‘Rings’ but currently they both point to all rings available in the shop but should only show the rings available in that particular category.
I’ve used the Types plugin to implement a Custom Post Type named ‘Product Type’ and assume it’s a case of inserting PHP code to get it to work but I’m now struggling.
P.S, I’m fine with CSS and HTML but PHP is new to me (just to let you know what level I’m at)
https://www.ads-software.com/extend/plugins/woocommerce/
]]>