tushargugnani / 5balloons.info

5 stars 1 forks source link

add meta keys #40

Closed tapan288 closed 1 year ago

tushargugnani commented 1 year ago

@tapan Sorry, This needs to be done a bit differently. Adding more details below.

An individual post needs to have its own URL and meta description set in the open graph data. In the WordPress system we used a plugin named Yoast SEO which stored all the required information for meta tags as well as open graph tags. We now need a way to get that data out of the database.

Here is a gist I have found that seems to does what we are looking for, Please go through it and let me know if it works out.

https://gist.github.com/FourStacks/0cdbadd989ad81d2cf49252dfa6410d1

tushargugnani commented 1 year ago

@tapan Few changes for the page title and og title

Individual Post : Post Title | 5Balloons Author Posts: Posts by Author tgugnani | 5Balloons Category Posts : Posts for Category Laravel | 5Balloons Home Page : 5 Balloons - Practicle Programming and Tech Articles | Home Search Result : Search Results for Laravel | 5Balloons

tapan288 commented 1 year ago

@tushargugnani, there seems to be an issue

// Get the serialized blob of term SEO data from the wp_options table (Corcel handles deserialization)
$seoData = Option::get('wpseo_taxonomy_meta');

We don't have the wpseo_taxonomy_meta on the options table, no other relevant column found as well

tushargugnani commented 1 year ago

@tapan288 Where exactly you are encountering this?

tapan288 commented 1 year ago

@tushargugnani, as suggested in this trait

tushargugnani commented 1 year ago

Not sure if we still need that, I see that we are getting the meta description by meta->_yoast_wpseo_metadesc

tushargugnani commented 1 year ago

Probably we can have a call discussion if it's confusing.

tapan288 commented 1 year ago

@tushargugnani What are the keys we need to include in the tags?

tapan288 commented 1 year ago

@tushargugnani, I've made some changes, please check whether any changes need to be made.