Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70914

Ionic and wordpress Rest Api in Plugin WP Job Manager

$
0
0

@joelnoiret wrote:

Hi! I’m new in Ionic coding and I’m trying to get jobs listings from the plugin wp job manager. I already have the output from rest api but now I don’t now how to reflect it in the html side in my ionic app. I mean:
I use this code to get post from my site

<ion-content>
  <ion-card *ngFor="let post of posts | async" (click)="openPost(post)" tappable>
    <img [src]="post.media_url | async">
    <ion-item>
      <ion-avatar item-left>
        <img [src]="getUserImage(post.authorId)">
      </ion-avatar>
      <h2>{{ getUserName(post.authorId) }}</h2>
    </ion-item>
    <ion-card-content>
      <ion-card-title>
        {{ post.title }}
      </ion-card-title>
      <div [innerHTML]="post.excerpt"></div>
    </ion-card-content>
  </ion-card>
</ion-content>

But I don’t know how to change the elements to show the job listings instead the post.

How can I do this?

Thanks for the help! :smiley:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>