[SOLVED] paragraphs tags not showing in wp content fetched from get_the_content() or paragraphs not showing at front end added from wp-editor

Recently I faced a very wierd issue while adding a post from wp-admin that on adding paragraphs from wp editor, the paragraphs were not showing at front end. The issue was that I have used get_the_content function.

When we use the_content function to show the content o post/page then filters added for the_content also execute ,one of them used to show content with <p></p> tags which are added from wp-editor while adding content. So, when we use get_the_content function, this filter does not execute, so content shows without paragraphs which looks very ugly if there is very large content added. Keep on reading

Get current map in event handler of marker click or position changed

Sometimes, we need to used map to get its current zoom level or center coordinates in event handlers. We can easily use map variable which we have created to show map through google map javascript api, but problem occurs when there are multiple map presents on the page, then in event handler we cannot use just map variable, to identify that  the event handler is fired for which map, so we need to use extra function to get map in event handler of google map javascript api.

Google Map API has a function get(‘map’) which can be used to get current map. I have shown here two examples below which shows how to use this function : Keep on reading