WordPress | Convert #038; to &

You’re setting the link using PHP-generated JavaScript. I’m sure there are better ways to do this, e.g. just write the onclick handler into the div, or use an <a> tag for a link as usual, but if you want to it this way you should be using esc_js() not esc_url(). <script type=”text/javascript”> document.getElementById(“professionista<?= $query->post->ID ?>”).setAttribute( … Read more

Different permalink structure per category

By Design, there is one permalink structure for the whole wordpress site. What you try to achieve needs to introduce a custom permalink structure for a part of it. This is not trivial because you need to introduce your own permalinks via rewrites (Rewrite API (WordPress Codex)) and you need to change the links to … Read more

WordPress 3.1 not compatible with jQuery Mobile?

Just a guess, but your error message indicates that WordPress is using jQuery 1.4.4. If you look at the jQuery Mobile website, they’re using 1.5. Have you tried using wp_enqueue_script to use a jQuery 1.5? You’d want to try something like: <?php function my_init_method() { if (!is_admin()) { wp_deregister_script( ‘jquery’ ); wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js’); wp_enqueue_script( … Read more

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