Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dalenguyen/wordpress-snippets
- Owner: dalenguyen
- Created: 2018-03-30T19:05:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T06:20:26.000Z (over 1 year ago)
- Last Synced: 2025-01-17T13:15:44.561Z (10 days ago)
- Topics: hacktoberfest, wordpress, wordpress-development, wordpress-php-library, wordpress-snippets
- Language: PHP
- Homepage:
- Size: 43.9 KB
- Stars: 137
- Watchers: 7
- Forks: 46
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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)