Vladimir’s WordPress Forum


 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

smart links don't work on the text in custom fileds

Add a New Topic Reply to Post
UserPost

16:08
5 February, 2010


Christiaan

Guest

Is there a way I can get this amazing plugin to work on the text in the custom fields?
Because now it only works on the text in the main content of the post/page.

tnx for your help

11:42
23 June, 2010


Vladimir

Admin

posts 707

How would you like this to work?

21:51
15 October, 2010


Markos

Guest

Hi Vladimir,
Just check this link of my website: http://www.zantehotels.gr/hote…..hotel.html
These fields are custom fields in my post: Rooms, Amenities, Location. How could I expand your plugin in order to find links in these fields?
Thanks in advanced…

5:58
18 October, 2010


saqwild

Guest

me too, same prob…

22:58
19 October, 2010


Vladimir

Admin

posts 707

You could add the fields to the post content before SEO Smart Links is called so it would act on already changed text.

7:54
20 October, 2010


saqwild

Guest

thank you, if you dont mind, can you please tell me how?
thanks for a very handy plugin

8:32
20 October, 2010


saqwild

Guest

ok, i have got it solved..
firstly i tried increasing the priory level from ad_filter, it did not help so i simply remove the priority level from ad_filter hook

thanks for the hint

8:36
8 May, 2011


Maly

Guest

hello Vlad, first thanx for this great plugin
I have the same request.
@saqwild I try as you said, nothing happend
you talked about this line on seo-links.php?
add_filter('the_content', array(&$this, 'SEOLinks_the_content_filter'), 10);
changed to
add_filter('the_content', array(&$this, 'SEOLinks_the_content_filter'));
It doesn't work for me :(
@Vlad, what you meant by "You could add the fields to the post content before SEO Smart Links is called so it would act on already changed text."??
thank you

11:24
9 May, 2011


Maly

Guest

I found a way
this code in the template
ID, 'your_custom_field', true)); ?>

11:25
9 May, 2011


Maly

Guest

<?php echo apply_filters('the_content', get_post_meta($post->ID, 'your_custom_field', true)); ?>

11:26
9 May, 2011


Maly

Guest

<?php echo apply_filters('the_content', get_post_meta($post->ID, 'your_custom_field', true)); ?>

23:56
27 August, 2011


Frank

Guest

Hi Maly,
I am a little lost here. Where did you insert that line?

ID, 'your_custom_field', true)); ?>

This is what I see in my theme to call the custom fields

Reply to Post

Reply to Topic:
smart links don't work on the text in custom fileds

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 4