Saturday, June 11, 2022
HomeWordPress Developmentcustomized publish sorts - WordPress mixed with a primary MYSQL desk

customized publish sorts – WordPress mixed with a primary MYSQL desk


thanks upfront for any suggestions to assist me discover a resolution.

== Context ==

I’ve my web site made in wordpress, through which I’ve a listing of vehicles that should come from one other desk in MYSQL (as a result of that record is loaded from a unique system in wordpress)

At the moment what I do is insert a shortcode on a web page that queries that desk and shows the record of vehicles.

Then when clicking on automobile particularly the person is directed to a different web page and within the URL I ship a variable that’s car_code

On the following web page I’ve one other shortcode that takes the variable $_GET[‘car_code’]

and seek the advice of on this desk the small print of the automobile to broaden the data to the person

== Questions ==
This works high quality, however I feel there should be a greater solution to do it and I might like some assist if potential:

I’m at the moment having difficulties as a result of:

  1. To do search engine optimization, every cart will not be listed by Google independently as a result of it doesn’t have impartial URLs. This may very well be solved with one thing from the modrewrite I suppose.

  2. I haven’t got every cart individually in my wordpress to make adjustments to every cart if I need (This appears to be little mandatory)

== Answer Approaches ==

I’m pondering of potential options, amongst them the next

  1. Each time a cart is printed within the cart desk, create a customized publish kind in my wordpress.

  2. Having the potential of creating customized publish ype on the fly, that’s, tricking wordpress into believing {that a} customized posttype exists just for programming however that it’s false.

What different concepts are you able to give me, a unique or higher solution to deal with this case?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments