These are some of the Stable Diffusion references people have made listing hundreds of artist styles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| toggle=0; | |
| function dblclick() { | |
| if (toggle==0) { | |
| var sc=99999; toggle=1; | |
| } else { | |
| var sc=0; toggle=0; | |
| } | |
| window.scrollTo(0,sc); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'comment_form_defaults', 'cd_pre_comment_text' ); | |
| /** | |
| * Change the text output that appears before the comment form | |
| * Note: Logged in user will not see this text. | |
| * | |
| * @author Carrie Dils <http://www.carriedils.com> | |
| * @uses comment_notes_before <http://codex.wordpress.org/Function_Reference/comment_form> | |
| * | |
| */ | |
| function cd_pre_comment_text( $arg ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Add responsive container to embeds | |
| /* ------------------------------------ */ | |
| function alx_embed_html( $html ) { | |
| return '<div class="video-container">' . $html . '</div>'; | |
| } | |
| add_filter( 'embed_oembed_html', 'alx_embed_html', 10, 3 ); | |
| add_filter( 'video_embed_html', 'alx_embed_html' ); // Jetpack | |
| ------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('pre_get_posts', 'posts_in_category'); | |
| function posts_in_category($query){ | |
| if ($query->is_category) { | |
| if (is_category('book-reviews')) { | |
| $query->set('posts_per_archive_page', 2); | |
| } | |
| // category With ID = 32 show only 5 posts | |
| if (is_category('politics')){ | |
| $query->set('posts_per_archive_page', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'get_the_archive_title', 'remove_category_word_in_archive_title' ); | |
| function remove_category_word_in_archive_title( $title ) { | |
| if ( is_category() ) $title = str_replace( 'Category:', '', $title ); | |
| return $title; | |
| } | |
| Topic: [Resolved] Remove "Category archive:" on a category page « WordPress.org Forums | |
| https://wordpress.org/support/topic/remove-category-archive-on-a-category-page/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function pagination($pages = '', $range = 4) | |
| { | |
| $showitems = ($range * 2)+1; | |
| global $paged; | |
| if(empty($paged)) $paged = 1; | |
| if($pages == '') | |
| { | |
| global $wp_query; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function PREFIX_remove_scripts() { | |
| wp_dequeue_script( '_s-navigation' ); | |
| // Now register your styles and scripts here | |
| } | |
| add_action( 'wp_enqueue_scripts', 'PREFIX_remove_scripts', 20 ); | |
| --- | |
| function PREFIX_remove_scripts() { | |
| wp_dequeue_style( 'screen' ); | |
| wp_deregister_style( 'screen' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $categories = get_the_category(); | |
| if ( ! empty( $categories ) ) { | |
| echo '<a href="' . esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Just adds a column without content | |
| * | |
| * @param array $columns Array of all the current columns IDs and titles | |
| */ | |
| function misha_add_column( $columns ){ | |
| $columns['misha_post_id_clmn'] = 'ID'; // $columns['Column ID'] = 'Column Title'; | |
| return $columns; | |
| } | |
| add_filter('manage_posts_columns', 'misha_add_column', 5); |
NewerOlder