Skip to content

Instantly share code, notes, and snippets.

View yehudaTiram's full-sized avatar

Yehuda Tiram yehudaTiram

View GitHub Profile
@yehudaTiram
yehudaTiram / wp_usermeta.md
Created August 19, 2021 09:44 — forked from KostasKrv/wp_usermeta.md
Show and Edit User Meta in Wordpress

#Show and Edit User Meta in Wordpress

Description

This simple procedure will allow you to:

  1. Display user meta fields under in the user list as additional columsn (Users > All Users).
  2. Display these fields on user profiles.
  3. Edit these fields under user edit.

This method works completely without plugins and involves just some functions and hooks in functions.php. Plugins like "User Meta Display" achieve this to some level, but treat custom meta fiedlds completely different from the regular fields. They are shown and edited in seperate environment and fail to show the meta data is a table list. This method integrates custom user meta along with regular user (meta).

@yehudaTiram
yehudaTiram / Super simple background image slideshow.css
Created June 23, 2018 22:55 — forked from mhulse/Super simple background image slideshow.css
Super simple jQuery background-image random slideshow (using CSS3 for the transition and gets the image paths via HTML5 `data` attribute).
[data-slides] {
background-image: url(../../uploads/banner1.jpg); /* Default image. */
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
transition: background-image 1s linear;
}
/* Use additional CSS to control the `height` of `[data-slides]`, like so: */