• I want to build a URI for each post that includes the permalink and the title, to add a link to Google Bookmarks on my posts. I tried with:

    <a title="Google Bookmarks" href="https://www.google.com/bookmarks/mark?op=edit&amp;bkmk=<?php the_permalink(); ?>&amp;title=<?php the_title();?>

    The problem is that the URI include blank or spaces of the title, so I have W3C validation errors. I tried with utf8_uri_encode() but does not work for me.

    <?php utf8_uri_encode(the_title()); ?>

    How can I solve it? Thanks

  • The topic ‘Remove blank in URI’ is closed to new replies.