Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dalenguyen/wordpress-snippets

Useful WordPress Snippets for Web Development
https://github.com/dalenguyen/wordpress-snippets

hacktoberfest wordpress wordpress-development wordpress-php-library wordpress-snippets

Last synced: about 22 hours ago
JSON representation

Useful WordPress Snippets for Web Development

Awesome Lists containing this project

README

        

# Useful WordPress Snippets for Web Development

Below is the list of useful WordPress Snippets that you can use when developing with WordPress.

+ [Add featured image to REST API](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_featured_image_from_rest_api.php)
+ [Get page ID from page title](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_page_id_from_page_title.php)
+ [Fix Notice Undefined Index](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/fix_php_undefined_index.php)
+ [Get all tags from a post](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_all_tags_from_a_post.php)
+ [Get anything with page / post ID](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_anything_with_page_id.php)
+ [Add additional mime types to media library](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/add_additional_mime_types_to_media_libary.php)
+ [Add post images to RSS feed](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/add_post_images_to_rss_feed.php)
+ [Define excerpt length](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/define_excerpt_length.php)
+ [Disable self pingbacks](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/disable_self_pingbacks.php)
+ [Embed responsive 16x9 videos](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/embed_responsive_16_to_9_videos.php)
+ [Exit if direct access is made to file](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/exit_if_direct_access_to_file.php)
+ [Get number of posts in specified term](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_number_of_posts_in_term.php)
+ [Get random post suggestion by categories](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_random_post_suggestion_by_categories.php)
+ [Get random post suggestion by tags](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/get_random_post_suggestion_by_tags.php)
+ [Remove inline styling from tag cloud](https://github.com/dalenguyen/wordpress-snippets/blob/master/src/remove_inline_styling_from_tag_cloud.php)
+ [Show related posts on single](https://github.com/wajidalitabassum143/wordpress-snippets/blob/master/src/show_related_posts_on_single.php)
+ [Shortcode: show popular blog posts based on cat](https://github.com/wajidalitabassum143/wordpress-snippets/blob/master/src/show_popular_blog_posts_based_on_cat_shortcode.php)
+ [List all authors of a blog grouped by first name with a single letter as a header character](https://github.com/wajidalitabassum143/wordpress-snippets/blob/master/src/list_authors_alphabetically.php)