Posts Tagged ‘wordpress’
PHP Output Buffering with WordPress
Use this to buffer output of a function. Useful in plugin development when shortcode displays are to be created in conjunction with custom post modules. In this snippet, the shortcode contents are being called by the include and the buffer output.
Read MoreAdd shortcode with attributes
This snippet is used to create a shortcode function for wordpress. This demonstrates the use of attributes as well.
Read MoreSort user tables in WordPress admin
With a request to sort users by recently registered. This feature was useful because the site was using s2member and has more than a thousand users. Troubleshooting new users are easier this way.
Read MoreExclude a post using a dynamic id
This is useful for instance in a portfolio where you would like to show the items on the single pages but do not wish for the current post to show up in the loop. In my occurrence I needed this to function outside of the loop for the dynamic work section that displays on the…
Read MoreCreate shortcode with external file
Use this to create a detached shortcode that is linked to another file.
Read MoreWP Query
Loop query snippet
Read MoreWordPress MySQL default collation
General consensus is using utf8mb4
Read More