post custom field

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

Viewing 4 reply threads
  • Author
    Posts
    • #5378


      Jackal01
      Participant
      Post count: 17

      Hi,

      One more question i saw the shortcodes for post custom field. But if i want to import a specific field from the RSS XML like gdacs:year for example from this XML https://www.gdacs.org/xml/rss_eq_5.5_3m.xml. Is that possible? and if it is possible, how must i describe it in the settings?

      Thanks in advance for your great support!

    • #5379


      Szabi – CodeRevolution
      Keymaster
      Post count: 4188

      Hello,

      Yes, importing custom fields from RSS custom tags is possible.

      You need to parse the RSS feeds and extract the custom tags, as shown in this tutorial video: https://www.youtube.com/watch?v=a4BMWi2tCGQ also: https://www.youtube.com/watch?v=FUb4NDb_1yE

      To assign these values to custom post meta, please check this other video: https://www.youtube.com/watch?v=GMIojmlI9fA

      Regards, Szabi – CodeRevolution.

    • #5380


      Jackal01
      Participant
      Post count: 17

      <div>Thank you! This is a fantastic option! I just couldn’t get a specific code yet. It’s about:</div>
      <div></div>
      <div class=”line”><span class=”html-tag”><gdacs:severity<span class=”html-attribute”> <span class=”html-attribute-name”>unit</span>=”<span class=”html-attribute-value”>M</span>”</span><span class=”html-attribute”> <span class=”html-attribute-name”>value</span>=”<span class=”html-attribute-value”>5.6</span>”</span>></span>Magnitude 5.6M, Depth:10km<span class=”html-tag”></gdacs:severity></span></div>
      <div></div>
      <div>It does work to retrieve gdacs:severity as custom_gdacs:severity But I would also like to retrieve the Value as 5.6. I’ve already tried something like custom_value or custom_magnitude but it didn’t work yet. Is this possible?</div>
      <div></div>
      <div>Thanks again!</div>

    • #5381


      Jackal01
      Participant
      Post count: 17

      Hello, Solved this.

      I was forgot the * as the space.

      Thanks for your support!

    • #5382


      Szabi – CodeRevolution
      Keymaster
      Post count: 4188

      I am glad to hear that it works!

       

      Regards.

Viewing 4 reply threads

The topic ‘post custom field’ is closed to new replies.