Forums

WP-O-Matic - Article links {permalink} are not displaying (8 posts)

  1. wpfan2000
    Member
    Posted 3 years ago #

    Hi -

    i did so much research on this topic and I still can't find an answer ...

    When you activate the custom template and include the {permalink} it still doesn't show u

    {content} <br /><br />
    <a href="{permalink}">Read more ... </a>

    I beleive the problem is the the regex syntax I added to remove all links from Google News

    #</?a[^>]*>#iu

    Which I beleive apply the rewrite to the Origin Item and hence removes the permalink

    Is there a way to remove the links from Google News while still keeping the permalink intact

    here is a sample for a google new item:

    <description><table border="0" cellpadding="2" cellspacing="7" style="vertical-align:top;"><tr><td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"><a href="http://news.google.com/news/url?fd=R&sa=T&url=http%3A%2F%2Fwww2.wnct.com%2Fnct%2Fnews%2Fnational%2Farticle%2Fobama_administration_to_reconsider_trucker_rule%2F67695%2F&usg=AFQjCNFJVnJ7l7x0mZXoyM70Sk2HOPxOwg"><img src="http://nt3.ggpht.com/news/tbn/95vDr9t56VAGnM/6.jpg" alt="" border="1" width="80" height="80" /><br /><font size="-2">WNCT</font></a></font></td><td valign="top" class="j"><font style="font-size:85%;font-family:arial,sans-serif"><br /><div style="padding-top:0.8em;"><img alt="" height="1" width="1" /></div><div class="lh"><a href="http://news.google.com/news/url?fd=R&sa=T&url=http%3A%2F%2Fwww.google.com%2Fhostednews%2Fap%2Farticle%2FALeqM5iboW-jspDFOlt_-Qs4BjDX-XrgIAD9BJLMC00&usg=AFQjCNEB3b3lXB3B9BhaaBE32y_xIxkK2Q"><b><b>Obama</b> administration to reconsider trucker rule</b></a><br /><font size="-1"><b><font color="#6f6f6f">The Associated Press</font></b></font><br /><font size="-1">WASHINGTON — The <b>Obama</b> administration has agreed to reconsider a rule that allows long-haul truckers to drive for up to 11 hours straight, bowing to safety <b>...</b></font><br /><font size="-1"><a href="http://news.google.com/news/url?fd=R&sa=T&url=http%3A%2F%2Fwww.nasdaq.com%2Faspx%2Fstock-market-news-story.aspx%3Fstoryid%3D200910271714dowjonesdjonline000530%26title%3Dobama-administration-agrees-to-reconsider-rules-on-truckershours&usg=AFQjCNGBgryMMxL1QDEo3wUDkfo7bnvLGA"><b>Obama</b> Administration Agrees To Reconsider Rules On Truckers' Hours</a><font size="-1" color="#6f6f6f"><nobr>NASDAQ</nobr></font></font><br /><font size="-1"><a href="http://news.google.com/news/url?fd=R&sa=T&url=http%3A%2F%2Fwww.reuters.com%2Farticle%2FpoliticsNews%2FidUSTRE59Q2X720091027&usg=AFQjCNErvq4rnliQyQJw9o3cSefeDi1zkw">US to revise disputed trucking regulation</a><font size="-1" color="#6f6f6f"><nobr>Reuters</nobr></font></font><br /><font size="-1" class="p"></font><br /><font class="p" size="-1"><a class="p" href="http://news.google.com/news/more?pz=1&ncl=dKs1SvCA7uDzg9MT0k205cYSn6kfM"><nobr><b>all 116 news articles&nbsp;&raquo;</b></nobr></a></font></div></font></td></tr></table></description>

    WP-O-Matic Version 1.0RC4-6

    Thanks

  2. wpfan2000
    Member
    Posted 3 years ago #

    any one ...

  3. wpfan2000
    Member
    Posted 3 years ago #

    i have the same issue ... anyone?

  4. pittsleyb
    Member
    Posted 3 years ago #

    this is exactly what I am looking for as well. I used the same regex to strip html except images and text but want to include a source link at the end. my problem is the same...custom template calls are useless once the html is stripped.

    anyone have a fix?

    my domain is http://www.phoneinferno.com if you want to take a look to see what is outputting now.

  5. arsalansrk
    Member
    Posted 3 years ago #

    Hye Can anyone help me out for using wp o matic to change the title also with the words i have submit in rewrite box ??

    Urgently Reply
    arsalansrk@gmail.com

  6. elizabethcb
    Member
    Posted 3 years ago #

    Within the WordPress Loop:

    <?php $perma = get_post_meta( get_the_ID(), 'wpo_sourcepermalink', 1);
        if ($perma) { ?>
       <a href="<?php echo $perma; ?>">Original Story</a>
    <? } else { ?>
    ....
    <? } ?>
  7. hannarms
    Member
    Posted 3 years ago #

    thank you elizabethcb!

  8. adizlaja
    Member
    Posted 2 years ago #

    Hello,

    I have a similar issue. I am trying to change the look of my google news feed.

    Can anyone help me please?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags