Support » Plugin: HungryFEED » HungryFEED -I can't get the text-

  • Ngariv


    Hi there!
    Thanks a lot for this fantastic plug-in. It works great for me, but a have a little thing i just can’t make work.

    I followed your tutorial video about selectively display parts of the descriptions: this one

    It works fine, but the problem comes when i try to extract just the text. In the video, you use the line:
    … but my text doesn’t come inside a span tag. My feed comes like this:

    <div class="hungryfeed_item_description"><div><a href="" title="Fiesta de los escobazos, Jarandilla de la Vera"><img src="" alt="Cartel oficial de la fiesta de Jarandilla de la Vera" class="Thumbnail thumbnail " width="100" /></a></div>La fiesta de Los Escobazos esta declarada de interes turistic...</div>

    I tried everything to get the text, but i finally gave up.
    I’d really appreciate any help you could give me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jason


    Yea phpquery is kinda tricky to work with. If you’re trying to get to those title attributes in the html then you can do that with something like this (basically get the title attribute of the first “a” tag):


    If you’re trying to get the text itself, then it does look like the text is actually a child of the first div. then that div has another nested div, but the text is only inside the first div, not the second – kinda wonky formatting but anyway this might work:


    Hope that helps…

    sorry to piggyback on this thread, but I have the same problem and am trying to get the text “©2012 Bob Englehart, The Hartford Courant” from the description below:

    <a href='URL omitted'><img border='0' src='URL omitted' alt='Bob Englehart, Labor Day, , bailouts, business, conservative, economy, holiday, jobs, labor day, liberal, unemployment' ></img></a><BR><BR>©2012 Bob Englehart, The Hartford Courant
    Plugin Author Jason


    I think this may work…


    basically selecting the text within the first “a” tag.

    no luck…
    the thing that has me stumped is that the text is not within the “a” tag
    is there a way to grab the text within the “description” tag?

    Plugin Author Jason


    Is there an actual description tag? if so then this should work:


    still no luck =(
    just to clarify, the “description” tag is from the rss feed itself, there’s no additional (nested?) description tag w/in the description section of the rss feed

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HungryFEED -I can't get the text-’ is closed to new replies.