Reputation
1,569
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 6 17
Newest
 Yearling
Impact
~40k people reached

Apr
6
asked Wordpress Multisite with thousands of blog
Dec
16
comment How to rewrite product links in WooCommerce
this might help: wordpress.stackexchange.com/questions/178112/…
Nov
17
comment How do I make this Metabox show current DB value?
@JohnLucey this should work. One thing, you don't need to use sanitize_text_field when you are updating the post meta. Wordpress will do that for you. You can debug whether the correct value is getting saved in the database.
Nov
17
comment How do I make this Metabox show current DB value?
@JohnLucey I've updated the code. I would suggest you to go over the hooks and filter that you are using over codex to get more details on how they work. Once you've got the understanding of them, you will make great progress. Try to go over the documentation first. They have tons of good information and example to get you started.
Nov
17
revised How do I make this Metabox show current DB value?
added 901 characters in body
Nov
17
comment How do I make this Metabox show current DB value?
@JohnLucey that will help. Please paste the github link
Nov
17
comment How do I make this Metabox show current DB value?
@JohnLucey it's the same $post_id variable that is used here: update_post_meta( $post_id, 'city', sanitize_text_field( $_POST[ 'city' ] ) );. I'm not sure where you are using this piece of code. But initializing that variable before $city_value = get_post_meta( $post_id, 'city', true ); should do the trick.
Nov
17
comment How do I make this Metabox show current DB value?
@JohnLucey I've updated the code.
Nov
17
revised How do I make this Metabox show current DB value?
added 71 characters in body
Nov
16
comment How do I make this Metabox show current DB value?
@JohnLucey I thought that you are saving the option as 'city', but as it turns out you are saving the whole city in that option field. Please post the code of how are you saving them in the db.
Nov
16
answered How do I make this Metabox show current DB value?
Nov
16
asked How to create Wordpress plugin Marketplace with proper license?
Nov
15
answered Capability to edit own posts and not others
Nov
15
answered Plugin creation, restricting access to specific roles
Nov
2
awarded  Yearling
Aug
6
asked How can I copy attachment in multisite without duplicating media
Jul
15
comment Installing new theme on running site
At this point I do it manually as I don't need to sync it post by post. But you can use wp_cron to do it automatically weekly or monthly.
Jul
14
answered Installing new theme on running site
Jul
14
comment Installing new theme on running site
I've used two configuration and both of them works fine. If the changes are mostly visual issues and doesn't depend on server/plugin compatibility, local development is best. You can also keep a test site which is mirror of the live site and not visible to end users. It is like working almost on the live site and this is the best option in my opinion.
Jul
2
reviewed No Action Needed captiva Theme Error