We have finished migration to the new data center successfully and are working out some minor issues within the site's code. If you experience any difficulties or have any questions please email us at [email protected].
Ask your WordPress questions! Pay money and get answers fast! (more info)

This member supports the community by voting at least twice a month. This member is one of the top experts of all time, the true elite. timDesain Nanang



I am a Wordpress Enthusiast, a Wordpress (theme & plugin) Developer based in Indonesia.




time.is (GMT+7)

html, css, jquery, php, mysql

- 7+ years in html, css, php & mysql
- 4+ years in wordpress & jQuery

- Wordpress theme developer
- Wordpress plugin developer (have created several plugins)
- Convert psd/html to wordpress

Answers Given: 145 (see them all)
Contests Won: 85
Prize Money Earned: $1139
Questions asked: 0
Questions refunded: 0 (see all?)
Is a top asker (has the power to vote on anything):
Subscribes to all the discourse posted to the site?: Yes
Country: Indonesia
City: Majalengka
Netvotes this month (upvotes minus downvotes): 0
Netvotes of all time (upvotes minus downvotes): 0
Joined the site: May 26, 2014

timDesain Nanang's upvoted answers:

This member has no downvoted answers

Answers given to these questions:

See more?

Questions voted:

The community is grateful to those experts who take the time to vote on questions.

See more?

timDesain Nanang has not asked any questions

This member has not made any recommendations. If you are one of the top experts, please offer one now!

timDesain Nanang's discourse:

Written in response to Field for ZIP and CITY autocomplete:

since the question has expired.

try the following code instead:

add_action('wp_footer', 'wpq11327_wp_footer', 999);
function wpq11327_wp_footer() {
<script type="text/javascript">
jQuery("body").on("focus", "#cp_city_zipcode", function(){

<script type="text/javascript">
var autocomplete;
var input = document.getElementById('cp_city_zipcode');
var options = {
componentRestrictions: {'country':'ch'},
types: ['(cities)'] // (cities)

function initAutocomplete() {
// Create the autocomplete object, restricting the search to geographical location types.
autocomplete = new google.maps.places.Autocomplete(input,options);

// [START region_geolocation]
function geolocate() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var geolocation = {
lat: position.coords.latitude,
lng: position.coords.longitude
var circle = new google.maps.Circle({
center: geolocation,
radius: position.coords.accuracy
// [END region_geolocation]

<script src="https://maps.googleapis.com/maps/api/js?signed_in=true&libraries=places&callback=initAutocomplete" async defer></script>


Written in response to Convert Select form field to Checkbox:

@Arnav, the code will give an output always 1, even has been updated as "unchecked".
if( !$current) $current = 1; 


Written in response to Add menu item at the top of admin that links to URL:

Hi Kyler,
the following code is the trick for the new tab:

add_action( 'admin_footer' , 'wpq_admin_footer' );
function wpq_admin_footer() {
<script type="text/javascript">
$('#menu-support a').attr( 'target', '_blank' );


Written in response to Add menu item at the top of admin that links to URL:

That is not admin_menu, but admin_bar.
admin_bar is the Toolbar that lines the top of WordPress sites when signed in.


Written in response to I need a custom field that only Admins can see:

I want to add a checkbox that only admins can see in these profiles.

answered by Ross

I need an IF statement in the custom post type page template that shows content if this new checkbox is checked.

answered by Arnav


Written in response to something Andrea P wrote.

# change categories array from the backend
I can create a custom plugin to change the array value from the backend: sortable, draggable & droppable (for reasonable prizes).

# category permalink
- sometimes the client wants the result/ answer exactly as per he/she needs.
- as parent: http://domain/category/parent-category
- as subcategory: http://domain/category/parent-category/subcategory
- better approach: I think she should be create a cpt and taxonomy for the catalog/product

# the plugin is not updated
- by me: https://wordpress.org/plugins/categories-images/
Compatible up to: 4.1.1
Last Updated: 2015-3-28 (2 weeks ago)

- by andrea: https://wordpress.org/plugins/category-thumbnails/
Compatible up to: 3.9.2
Last Updated: 2014-3-20 (>1 year ago)

Thank you.



Andrea P had responses to this.

Written in response to Content repeating on page:

if anyone could check my answer.
A bit late while typing.

Thank you.


Written in response to Show authors only their custom post types:

the second code will apply to the dealer cpt


Written in response to Show Future Custom Post Type:

you should try post_class filter:


Written in response to Genesis - theme settings - navbar extras gone missing!:

Thanks @Arnav.
I never did a fresh install of Genesis 2.1 or newer, so I know about it now.

I just found:
"Primary Navigation Extras are gone on fresh installs of 2.1
If you are using Genesis for the first time you will probably not even notice this. But if you have used the navigation extras in the past, and do a fresh install of Genesis 2.1, you will see they are gone."
=> http://bobwp.com/two-changes-you-should-know-about-genesis-2-1/


Written in response to Plugin Social Feed to Facebook and Twitter:

I actually bought that plugin, but it was a bit of overkill (too complex for my needs)... I spent quite a bit of time trying to simplify it and tweak the isotope layout to go from fixed width to fluid width to match the design, but became quite the unusable mess.

to override the plugin (from fixed to fliud width):
you have to set "Use Fixed Widths:" to OFF under Setting tab
put this code before </head> tag

<style type="text/css">
.dcwss.dc-wall .stream li {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
margin: 0 !important;
@media screen and ( min-width: 981px ) {
.dcwss.dc-wall .stream li{width:24.66666% !important; }
@media screen and ( max-width: 980px ) {
.dcwss.dc-wall .stream li{width:33.2% !important; }
@media screen and ( max-width: 640px ) {
.dcwss.dc-wall .stream li{width:49% !important; }
@media screen and ( max-width: 480px ) {
.dcwss.dc-wall .stream li{width:99.88888% !important; }

put this code before </body>
<script type="text/javascript">
jQuery(function($) {
if (jQuery.isFunction(jQuery.fn.isotope)) {
$('.dcwss.dc-wall ul.stream').isotope({
itemSelector : '.dcsns-li',
transformsEnabled: false
$('.dcwss.dc-wall ul.stream .dcsns-li, .dcwss.dc-wall .stream li').css({'transform': 'none', 'margin': '0', '-webkit-box-shadow': 'none', '-moz-box-shadow': 'none', 'box-shadow': 'none', });

$('.dcwss.dc-wall ul.stream').isotope({
itemSelector : '.dcsns-li',
transformsEnabled: false

or you can use the wp_head and wp_footer hooking


See more?

timDesain Nanang has not had any questions refunded

timDesain Nanang has not posted any suggestions for appropriate prize amounts for questions.