How do I append multiple taxonomies to the URL?

This is certainly possible by utilizing some rewrite rules of your own to some extent. The WP_Rewrite API exposes functions that allow you to add rewrite rules (or ‘maps’) to convert a request to a query. There are prerequisites to writing good rewrite rules, and the most important one is basic regular expression comprehension. The … Read more

How do you get formatted content of a post using the WordPress API?

Post’s object field contains raw content as it is stored in database. This should format it to how it appears when retrieved with template tags: $content = apply_filters(‘the_content’, $content); This filters runs number of formatting functions, including shortcodes parsing. Something close to this: >>>>> the_content 8 (object) WP_Embed -> run_shortcode (1) (object) WP_Embed -> autoembed … Read more

WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins

It didn’t say in the API docs on the Yoast SEO plugin site what the ID was and I don’t have a copy of Yoast at installed at disposal, but according to yoas-plugin-dir/admin/class-metabox.php line 144, the meta_box registered is; add_meta_box( ‘wpseo_meta’, …etc ); … Which is hooked onto add_meta_boxes hook on line 32 of the … Read more

How to use more than 256MB of memory in the admin?

Theoretically, editing your config.php and add this line before wp-settings.php inclusion. define(‘WP_MEMORY_LIMIT’, ‘256M’); should raise your memory limit for WordPress to 256MB or whatever value you set. And this will work sitewide. However, as sorich87 pointed out, there are few functions that will alter this setting with hard coded 256 MB limit. To Hack or … Read more

WordPress and Git – What folders should I track?

Basically ignore everything except your theme folder and custom plugins. sample .gitignore: wp-admin/ wp-includes/ .htaccess index.php license.txt liesmich.html readme.html wp-activate.php wp-blog-header.php wp-comments-post.php wp-config.php wp-config-sample.php wp-config-stage.php wp-config-live.php wp-config-dev.php wp-config-production.php wp-cron.php wp-links-opml.php wp-load.php wp-login.php wp-mail.php wp-settings.php wp-signup.php wp-trackback.php xmlrpc.php config/ wp-content/plugins/ wp-content/mu-plugins/ wp-content/languages/ wp-content/uploads/ wp-content/upgrade/ wp-content/themes/* # don’t ignore the theme you’re using !wp-content/themes/yourthemename This makes the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)