سؤال

On my Taxonomy (Category) Landing Page, I am listing all the articles in the chronological format. But I also want to show one Article (that I select) or a latest one as a Featured Article on the Landing Page. With the Featured Article, I'd show the following Custom Fields within the Article:-

  • Featured Image
  • Title
  • Couple of other custom fields

My question is how to do it with a probable customized loop or any module?

هل كانت مفيدة؟

المحلول

  • Create a view (block) and setup your fields.
  • Add a Taxonomy Term ID Contextual Filter
  • Choose "Provide Default Value" in the "WHEN THE FILTER VALUE IS NOT AVAILABLE" section
  • Choose "Taxonomy term ID from URL" in type.
  • Save the contextual filter and then save your view.
  • Have the view block display on the taxonomy term pages.
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top