Woocommerce custom fields

Firstly, i would use a custom function in your child themes functions file rather than add the code directly to the template file. You can use the WooCommerce conditional tags and hooks in your code. echo get_post_meta( get_the_ID(), ‘collection_text’, true );

jQuery form plugin, submit in the wordpress way

If you want to use the WordPress functions in your process.php file then there is a way for you. simply put these two lines of code at the top of your process.php file $blogheader = explode(“wp-content”,$_SERVER[“SCRIPT_FILENAME”]); include $blogheader[0].”wp-blog-header.php”; Now you can use the WordPress functions in your file and do what you want. Will that … Read more

Convert theme to be based on Bootstrap?

I have created at least two wordpress themes using Bootstrap 3. In fact, is not complicated at all. Besides the obvious, you need keep in mind three things to do: Enqueuing correctly both the bootstrap styles and scripts Set up an own “Walker Nav Menu” that override the default walker for create drop-down menus Change … Read more

Allowed memory size of (…) exhausted

Turns out this issue was caused by bad code (a missing assert) in my theme. More specifically the theme requires a custom navigation menu. As this menu hadn’t been created and assigned the site crashed. Why this caused an memory exhaustion error on my production server and not my development computer I unfortunately don’t know.

deleted menu still present [closed]

Sometimes these things get messed up. If you have access to database, try to delete transient options (look for any keys that contains “transient” and/or your deleted menu name) from wp_options table

save_post not working

Try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 0, 1 ); May be this will help… I think i made a little mistake…But i am little confused about priorities… so try this: add_action( ‘save_post’, ‘vg_update_timestamp’, 10, 2 ); Because, Docs says Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order … Read more