GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress them question? (https://gfy.com/showthread.php?t=991265)

digi 10-07-2010 08:29 AM

Wordpress them question?
 
You know when your theme uses excerpts and each post have a "Read more" link to the full post at the bottom.. do you know how to remove that link in specific posts but not all?

Babaganoosh 10-07-2010 08:33 AM

Yes, I do.

CurrentlySober 10-07-2010 08:39 AM

I do as well.

fris 10-07-2010 08:44 AM

you could to it via custom field and add this to your themes functions file

Code:

function custom_more($more) {
      global $post;
      $mymore = get_post_meta($post->ID, 'moreoff', true);
      if ($mymore == false) {
                      return '<a href="'. get_permalink($post->ID) . '">' . 'Read more...' . '</a>';
      }
}
add_filter('excerpt_more', 'custom_more');

just add a custom field to the posts moreoff and set it to true, those posts will have no more link.

might be a plugin to do this, but i would do it this way.

hope this helps.

fris 10-07-2010 09:54 AM

let me know if it works out

StinkyPink 10-07-2010 10:36 AM

Where do you change the "read more" text? I did this and now I cannot find it.

digi 10-08-2010 05:25 AM

hi, nope.. it didnt work

marcoss 10-08-2010 05:32 AM

Here is:

link: wprecipes.com/create-custom-read-more-links-on-your-wordpress-blog

fris 10-08-2010 06:16 AM

Quote:

Originally Posted by digi (Post 17587060)
hi, nope.. it didnt work

can you show me an example ?

if you dont wanna post the url here. [email protected]


All times are GMT -7. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123