How to Set limit to Compare product in Magento 2?

How to Set limit to Compare product in Magento 2?

As we know that in magento 2 we can add as many product to compare, but in this case we can set limit and add only 4 products in compare section so that it would be easy to compare and check two products. Step 1 : Create a module named as app/code/Company/Catalog Step 2 : Create Registration.php Step 3 : Create a file inside following […]

Read More

How to Add Custom Field in WordPress Post?

How to Add Custom Field in WordPress Post?

Meta-data is taken care of with key/value sets. The key is the name of the meta-data component. The value is the data that will show up in the meta-data list on every individual post that the data is related with. Function Reference : add_post_meta() For Example : We’ll include two custom fields, one called “At present Reading” and the other “Author Name”. The accompanying guidelines […]

Read More