WordPress add wp media

I want to add a media screen to upload photos to a custom post type. I did search the internet but found the solutions were bit an pieces.

What I plan to do – Add Media Screen to Custom Post Type

1) When click on the Add Media – media screen will apppear
2) User can select a photo and when a photo is selected, it will replace the previous photo.

wordpress - add wp media screen to a custom post type
when click on the add media button, a media screen will appear
wordpress - media screen appear on custom post type
media screen appears after clicking on the button.
wordpress - select new photo
wordpress – select new photo
wordpress - new photo replaced the previous one
wordpress – new photo replaced the previous one

How To Do It?

1) Add below javascript

2) Enqueue the script

3) Add this PHP code  to your plugin

Code Explanation

All the codes are self explanatory and with comments. I just want to highlight which code you can change the title of the media screen.

wordpress - wp media change its default title
wordpress – wp media change its default title

 

References:

https://stackoverflow.com/questions/21540951/custom-wp-media-with-arguments-support

Airbnb Meridin Medini Review Near Legoland Johor

We stay at one of Airbnb unit at Meridin Medini from 27th January date to 1st February 2022.

Check In Process

It is standard in most airbnb unit where you need to pick your access card at mailbox. Thanks to not so many visitors so check in and check out process were smooth.

airbnb meridin medini drop off
airbnb meridin medini drop off
airbnb meridin medini check in via mailbox
airbnb meridin medini check in via mailbox

The Unit

The unit had 2 bedrooms and 2 bathrooms with one king bed and one queen bed. Comfortable floor mattresses were provided.

Overall unit was OK but unfortunately the fridge was not cold at all. Aircond also not cold. I had to clean up the aircond filter only after that it started to be cold. Shampoo and shower bath are low quality.

Sofa was also felt so rigid not comfy. TV was small, I think it was around 40 inch.

Surprisingly the unit was not that hot even though outside was hot. What I like the unit had good WIFI and Netflix.

airbnb meridin medini living room balcony
airbnb meridin medini living room balcony
airbnb meridin medini liivng room
airbnb meridin medini liivng room
airbnb meridin medini - kitchen
airbnb meridin medini – kitchen
airbnb meridin medini - master bedroom king bed
airbnb meridin medini – master bedroom king bed
airbnb meridin medini - master bedroom
airbnb meridin medini – master bedroom
airbnb meridin medini - master toilet
airbnb meridin medini – master toilet
airbnb meridin medini - corridor
airbnb meridin medini – corridor
airbnb meridin medini refuse room
airbnb meridin medini refuse room

Common Facilities

I love the facilities even thought it was standard facilities in any condominium but there was no one or nearly no one who were using it. So the place was not crowded.

Besides it was easy to get lift as there were not so many visitors.

airbnb meridin medini gym with nice view
airbnb meridin medini gym with nice view
meridin medini condo gym at level 5
meridin medini condo gym at level 5
hadeef hadien at gym meridin medini
hadeef hadien at gym meridin medini
meridin medini swimming pool view at bandar medini iskandar johor
meridin medini swimming pool view at bandar medini iskandar johor

Rates

We were paying RM160++ per night. For me it was reasonable price but disappointed couldn’t use the fridge, sofa not comfy and aircond not functioning well.

Location

It was near to Legoland Johor which took only 5 mn drive to Legoland and 10mn drive to Puteri Harbour.

Latitude Longitude: 1.421212066934808, 103.62979159916857

Google Map – Meridin Medini

Final Review

Cleanliness – 5 stars
Rates – 5 stars
Hosts responsiveness & courtesy – 5 stars
Common facilities – 5 stars
Lift – 5 stars
Unit amenities – 3 stars
Location – 5 stars
Overall – 4 stars

I gave 4 stars because fridge was not cold and sofa was not comfortable.

Hyundai Starex Executive Plus Review for Long Journey Travel

I bought my Hyundai Starex Executive Plus 2.5 December 2021 for my long vacation traveling.

On 27th January, we go to Medini, Johor for Legoland vacation.

What I Like about Starex for Long Distance Traveling

Starex is very spacious you can fill in lots of luggage at the back but still have ample room for 6 persons at the back plus one driver and co pilot.

hyundai starex executive plus full luggages
hyundai starex executive plus full luggages

From Bukit Jelutong, Shah Alam to Johor Bahru with estimated distance of  342 km, Starex consumed around RM100 worth of diesel which I think is quite fuel efficient.

hyundai starex executive plus fuel
hyundai starex executive plus – use half the fuel from Shah Alam to Johor Bahru.

Besides Starex is quite stable even speeding at 140km per hour. You don’t feel any vibration at that speed.

What I Don’t Like about Starex?

What I don’t like about Starex is its steering. For long distance it is quite tiring using its steering because you can’t rest your hand on the steering like my Myvi.

hyundai starex exclusive plus steering - too small to put my lazy hand
hyundai starex exclusive plus steering – too small to put my lazy hand

MyVi steering I can just put my lazy hand on the green parts so I can rest my hands.

perodua myvi steering
perodua myvi steering

Google reCaptcha v2 Doesn’t Work using PHP on my Website

My website is a WordPress website. I wanted to create a form with a reCaptcha protection using Google reCaptcha v2 (tick box). Surprisingly it doesn’t work even though it works on my other website using same PHP code.

After Ticking the reCaptcha

google recaptcha v2 tick box
google recaptcha v2 tick box

It doesn’t work if use file_get_contents

Google reCaptcha keeps sending me error.

It works if using curl

 

 

Semak Cukai Taksiran Majlis Bandaraya Petaling Jaya (MBPJ)

Anda boleh menyemak cukai taksiran semasa anda dengan melawat laman sesawang Majlis Bandaray Petaling Jaya – Semak Cukai Taksiran

Masukkan Nombor akaun anda dan tekan semak.

semak cukai taksiran majlis bandaraya petaling jaya
semak cukai taksiran majlis bandaraya petaling jaya

Bil Cukai Taksiran anda akan dipaparkan seperti berikut.

semak cukai taksiran majlis bandaraya petaling jaya - bil
semak cukai taksiran majlis bandaraya petaling jaya – bil

 

 

Mana Corner Restaurant at Puteri Harbour Johor

Everytime we go to Legoland Johor we will eat at Mana Cafe at Puteri Harbour. The foods are delicious.

We always eat its crispy roti canai, delicious soto and sate. At night the place is really crowded with people.

The Foods

Haha most of photos are already eaten foods because forgot to take it before we ate it.

Mana Cafe roti canai
Mana Cafe roti canai
Mana Cafe soto
Mana Cafe soto
Mana Cafe sate
Mana Cafe sate
Mana Cafe donut and cucur udang
Mana Cafe donut and cucur udang

Location:

Latitude Longitude: 1.4184690014260493, 103.65637277856008
Google Map

Mindstorms Lego Workshop at Johor Legoland

This time around I went to Mindstorms Lego Workshop at Legoland. It is first time I played Mindstorms Lego.

You need to register in advance before you can join the workshop. Better register early to get your time slot.

Mindstorms Lego workshop deco
Mindstorms Lego workshop deco

For Mindstorms Lego workshop, Johor Legoland offers two workshops:

  1. Cosmobot
  2. Dr HeartBeat

Mindstorms Lego – Cosmobot

Mindstorms Lego Cosmobot
Mindstorms Lego Cosmobot
Mindstorms Lego Cosmobot workshop room
Mindstorms Lego Cosmobot workshop room

Lego instructor will explain that you need to do 2 tasks which are:

  1. Setting up communication channel
  2. Launch the rocket

You have to do the programming to make sure the robot do those two tasks correctly. It is simple programming for the kids. Just like a flow where you need to change the robot movement configuration.

It is exciting for kids who have passion in programming or robotics.

mindstorm lego at johor legoland
mindstorm lego at johor legoland
Mindstorms Lego Cosmobot lego set
Mindstorms Lego Cosmobot lego set

The Completed 2 Tasks Results

Mindstorms Lego – Dr Hearbeat

Mindstorms Lego Dr Hearbeat
Mindstorms Lego Dr Hearbeat

This is the second Mindstorms workshop available at Johor Legoland. This time, you have to do 2 tasks:-

  1. Injecting a need to the patient
  2. Dispensing pill to the patient

Dr Heartbeat bit more complicated than Cosmobot but it follows same concept where you have to program using a flow of configurations.

Mindstorms Lego Dr Hearbeat - hearbet lego set
Mindstorms Lego Dr Hearbeat – hearbet lego set
Mindstorms Lego Dr Hearbeat - instructor giving explanation
Mindstorms Lego Dr Hearbeat – instructor giving explanation

The Completed 2 Tasks Results

7 Spice Indian Cuisine at Danga Bay Johor Bahru

Whenever we go to Johor Bahru, we will eat at 7 Spice because its foods are delicious,  its price is reasonable and clean restaurant.

7 Spice Restaurant

7 Spice is Indian fine dining restaurant and have comfortable environment and its toilets are clean. Anyway I go to restaurant I would like to check its toilets. If toilets are clean, for me it is high possibility its foods preparation is also clean.

7 spice dining table
7 spice dining table
7 spice restaurant toilet danga bay johor
7 spice restaurant toilet danga bay johor

Foods That We Ordered

We always orders its chicken tandoori and butter chicken, plain naan and also butter chicken. This time around no chicken tandoori so we ordered chicken 65 instead. It is fried chickens cooked in Indian spices.

7 spice indian cuisine johor bahru - butter chicken
7 spice indian cuisine johor bahru – butter chicken
7 spice indian cuisine johor bahru - plain naan
7 spice indian cuisine johor bahru – plain naan
7 spice indian cuisine johor bahru - gobi manchurian - fried cauliflower
7 spice indian cuisine johor bahru – gobi manchurian – fried cauliflower
7 spice indian cuisine johor bahru - butter prawn
7 spice indian cuisine johor bahru – butter prawn

At same time, this visit around, we tried its lamb coconut chilis fry.

7 spice indian cuisine johor bahru - lamb coconut chilis fry
7 spice indian cuisine johor bahru – lamb coconut chilis fry

The lamb is so spicy my kids couldn’t eat it though.

The dishes that we ordered.

7 spice indian cuisine johor bahru - dishes
7 spice indian cuisine johor bahru – dishes

Reasonable Price

7 spice indian cuisine johor bahru - receipt
7 spice indian cuisine johor bahru – receipt

7 Spice Location

Latitude Longitude: 1.484232252236307, 103.71848102800365
Google Map

Google AdSense – Set Up Wire Transfer Account In Malaysia

Finally I reached my threshold of USD100 to allow me to withdraw my Google AdSense income.

When try to set up my wire transfer as payment method, I notice there is this remarks at Google AdSense saying “To receive payouts by wire transfer, contact your bank for exchange rates and fees. Bank account must be located in Malaysia and in US Dollar currency.”

So I wonder whether I need to set an account in USD in order to receive the fund. I googled but couldn’t find anything.
So what I did, I just set up wire transfer using my account in Malaysian Ringgit.

Setting Up The Wire Transfer Using Malaysian Ringgit Bank Account

google adsense - add payment method in malaysia
google adsense – add payment method in malaysia
google adsense - added payment method
google adsense – added payment method

Email Notification AdSense Payment Has Been Transferred from Google

email notification adsense payment transfer from google
email notification adsense payment transfer from google

The Fund Received

Alhamdulillah I received the payment. So meaning you can receive your AdSense income just using our normal Malaysian Ringgit Bank Account. I’m using Maybank and Maybank SWIFT code is: MBBEMYKLXXX

google adsense payment received
google adsense payment received

It took 5 days or 3 business days  as Google wire transferred the fund on 21st January 2021 and I received it on 25th January 2022.