Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Frage zu PHP Wordpress Code an Profis

Empfohlene Antworten

Veröffentlicht

Hallo,

ich frage auf meiner Webseite die feeds von meinem Blog ab. Mein Blog hat mehrer Kategorien

  1. Tuning
  2. Motorrad News

Ich möchte auf der Community-Startseite nur die neusten Artikel von der Kategorie Tuning haben und nicht beides!

Mein Code:

 


$sql="SELECT 


   meta_value


  FROM 


   biker_magazinposts


  LEFT JOIN


   biker_magazinpostmeta


   ON(biker_magazinposts.ID=biker_magazinpostmeta.post_id)


   WHERE meta_key='startseite'


   ORDER BY 


     post_date


   DESC


   LIMIT 1


   ";


 $ret=NULL;


Hat jemand Rat wie ich dies ergänzen kann!

Bearbeitet von Anwendungsentwickler

Mit deinem Code kann man nix anfange.

Ich rate mal und sage

WHERE tabelle_wo_die_kategorie_drinsteht.kategorie_feld = 'Tuning'

Sollen wir uns ausdenken wie deine Datenbank aufgebaut ist?

Wodurch wird denn definiert das es ein Tuning beitrag ist?

Ted

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.