WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

bacoords/example-query-loop-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Query Loop Button Extension

Extends the button block to allow you to populate the href value automatically with the permalink or to a custom meta field. This is especially useful in the query loop, where you may want a custom button for your read more link.

🎥 The full tutorial.

Xnapper-2023-11-28-21 31 38

This repo is part of a tutorial that teaches you how to:

  1. Add custom attributes (aka custom fields) to a core block, and
  2. Modify the final frontend markup of the block based on the attribute values

About

Add Custom Fields to Buttons in the Query Loop

Resources

Stars

Watchers

Forks