Add prefix to link url

Based on this question about retrieving WordPress post slug, you could put together a link like the following: <a href=”http://www.example.com/md/<?php global $post; echo $post->post_name; ?>”>link text</a> Whether that goes to a functioning page or not, I don’t know. It seems like you may want to change rewrite rules in the functions but I’m not sure … Read more

wp_query with cat not working

From what u have written so far it seems menu_categorie is the custom taxonomy. Make sure it is this only. I get a feeling that you have misses “s” from the end of menu_categorie Anyways The argument ‘cat’ => $id you were using is used for default taxonomy i.e category. But in your case you … Read more

How to style options page in dashboard?

You can simply add those CSS to admin HEAD section, it’s fast and easy solution. function jrl_styles() { ?><style type=”text/css”> #jrl-wrap { width: 700px; padding: 3em; /* … */ } </style><?php } add_action(‘admin_head’, ‘jrl_styles’); Or you can enque your CSS file like this: function load_custom_wp_admin_style() { wp_register_style( ‘custom_wp_admin_css’, get_stylesheet_directory_uri() . ‘/functions/site-options.css’, false, ‘1.0.0’ ); wp_enqueue_style( … Read more