How to make a button?

There is plenty of information on how to make the Read More function display different text in the Codex but what kind of filter would need to be used to make it display <button class=”readmorebtn” onclick(permalink)>Read More</button>? 2 Answers 2 The “(more…)” link gets filtered through the_content_more_link in get_the_content(). You can hook into this function … Read more

Get the link text

How I can get the link text is using WordPress? By default is something like: Read More <span class=”meta-nav”>→</span> buy I want to get that value in a variable because some WordPress installation can have that value customized (using filter the_content_more_link) or in another language. In resumen: what I need is to get from WordPress … Read more

Different ‘read more’ links

Is there an easy way to add another ‘read more’ link? I’m using the standard ‘continue reading’ link for some posts but I also want to use a different text like ‘more info’ for other posts. Can I do this using the_excerpt? Later update: This are the two standard twentyelven functions that are used for … Read more

“More” span making trouble

I’ve created my own custom post type using this tutorial: http://thinkvitamin.com/code/create-your-first-wordpress-custom-post-type/ Everything works fine, but I’m having major problem with “Read more” feature. As we all know <!–more–> adds <span id=”more-[number]” /> at the start of hidden more paragraph. In my case this span breaks whole markup. See for yourself: <p>This is normal paragraph and … Read more

Exclude filter on front page

I am using this code in functions.php to append a button for link to a post. function new_excerpt_more($more) { global $post; return ‘<a class=”excerpt-readmore” href=”‘. get_permalink($post->ID) . ‘”>Read more</a>’; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); In front-page.php I have get_template_part(‘content-ctp’); and in that file I have $args = array( ‘post_type’ => ‘radovi’ ); $ctp = new WP_Query($args); … … Read more