Související příspěvky

Related Posts Slider
http://wordpress.org/extend/plugins/related-posts-slider/

Related posts slider creates a very attractive slider of the related posts or/and pages for a WordPress post or page.
The slider is a lightweight jQuery implementation of the related post functionality. It has a ready shortcode and widget as well to insert the slider.

– Showcase related posts in slider format, either in news style or in horizontal carousel format
– Complete CSS customization from settings panel
– Compatible with YARPP plugin and WordPress Related Posts plugin
– Widget option available for Related Posts Slider
– Shortcode option to insert Related Posts Slider in between the content of a post
– Translation ready

*Alternativy*

Manuální nastavení souvisejících příspěvků

Manual Related Posts
https://wordpress.org/plugins/baw-manual-related-posts/

You can manually choose which posts have to be be linked to every posts. Just click „Add related posts“, search for a post, click, add. Posts are linked to each others, example if you add on „Post A“ the „Post B“, then the „Post B“ will be linked to „Post A“ automatically, even if you can not see it in the backend.

7 Awesome Related Post (Thumbnail) Plugins for WordPress »

Záložky („tabs“) na stránce nebo příspěvku

WordPress Post Tabs
http://wordpress.org/extend/plugins/wordpress-post-tabs/
http://www.clickonf5.org/wordpress-post-tabs

Plugin for WordPress that will help you add as many tabs to your WordPress post or Page. So, say if you want to write some review, you can create various sections of the review post and display them in a tab view, i.e. separate tab for each section. This can be looked as a menu for your individual post, so that your readers can easily notice the distinct sections of your article or post or page.

You can choose from different styles, the looks of your post tabs or you can easily create your own style.

Frameworky a nástroje pro vytváření šablon

PressWork
http://presswork.me/

The PressWork Toolbox lets you style any theme in a live preview environment without any code, drag & drop to set your layout in seconds, add Google fonts.

WP Paintbrush
http://wppaintbrush.com/

Theme for WordPress, which comes with a built in editing panel, allowing anyone from beginners to advanced WordPress users to quickly create a unique and beautiful design for their website. WP Paintbrush makes it easy to redesign your site, even if you have zero knowledge of coding.

Wonderflux
http://wonderflux.com/

A powerful, free WordPress theme framework. It allows you to rapidly create unique WordPress themes – and the best part… it’s free (and always will be!) Wonderflux is open source GPLv2 licensed code – just like WordPress, so you can use it on unlimited client, personal and commercial websites with no subscription or cost.

WordPress Theme Generator
http://www.yvoschaap.com/wpthemegen/

This online generator creates your own custom unique WordPress Theme. Without any need for HTML, JS, PHP, or CSS knowledge.
Change the colors, settings, layout, preview live, click „save“ and download your unique WordPress theme zip-file. Extract, upload, set, and you are done!

Praktické útržky kódu

Title of the site


<?php bloginfo('name'); ?>

Basic URL of the site


<?php echo site_url(); ?>

<?php echo home_url(); ?>

Exact URL for the site (incl. path)


<?php bloginfo('url'); ?>

Name of the site


<?php bloginfo('name'); ?>

Site’s description


<?php bloginfo('description'); ?>

The style.css style’s location


<?php bloginfo('stylesheet_url'); ?>

The style.css style’s directory


<?php bloginfo('stylesheet_directory'); ?>

Location for the site’s theme files


<?php bloginfo('template_url'); ?>

Title of the specific post or page


<?php wp_title(); ?>
<?php the_title(); ?>

Url of a specific post or page


<?php the_permalink(); ?>

Category of a specific post or page


<?php the_category(', ') ?>

Author of a specific post or page


<?php the_author(); ?>

ID of a specific post or page


<?php the_ID(); ?>

Link to edit a specific post or page


<?php edit_post_link(); ?>

RSS2 URL for the site


<?php bloginfo('rss2_url'); ?>

Content of the posts


<?php the_content(); ?>

Header.php file’s content


<?php get_header(); ?>

Sidebar.php file’s content


<?php get_sidebar(); ?>

Footer.php file’s content


<?php get_footer(); ?>

The date in ’08-18-07′ format


<?php the_time('m-d-y'); ?>

Link for the comments on the post


<?php comments_popup_link(); ?>

Links from the blogroll


<?php get_links_list(); ?>

Comment.php file’s content


<?php comments_template(); ?>

List of pages


<?php wp_list_pages(); ?>

List of categories


<?php wp_list_cats(); ?>

Url to the next post


<?php next_post_link('%link'); ?>

Url to the previous post


<?php previous_post_link('%link'); ?>

The built-in calendar


<?php get_calendar(); ?>

List of archives for the site


<?php wp_get_archives(); ?>

Next and previous post link


<?php posts_nav_link(); ?>

Include any file


<?php include(TEMPLATEPATH . '/x'); ?>

Value for search form


<?php the_search_query(); ?>

Prints out message


<?php _e(’Message’); ?>

Displays the register link


<?php wp_register(); ?>

Displays the login/logout link


<?php wp_loginout(); ?>

Divides the content into pages


<!--next page-->

Cuts off the content and adds a link to the rest of the content
/—code php
Pokračovat ve čtení „Praktické útržky kódu“

Práce s databází pomocí třídy $wpdb

Načtení ID a nadpisů čtyř nejnovějších příspěvků a jejich seřazení podle počtu komentářů (sestupně):


<?php
   $posts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish'
   AND post_type='post' ORDER BY comment_count DESC LIMIT 0,4")

   // Echo the title of the first scheduled post
   echo $posts[0]->post_title;
?>

Objekt $results obsahuje pole s výsledky.

get_row načte pouze jediný záznam z tabulky:


<?php
   $posts = $wpdb->get_row("SELECT ID, post_title FROM wp_posts WHERE post_status = 'publish'
   AND post_type='post' ORDER BY comment_count DESC LIMIT 0,1")

   // Echo the title of the most commented post
   echo $posts->post_title;
?>

get_col načte celý sloupec:


<?php
   $posts = $wpdb->get_col("SELECT ID FROM wp_posts WHERE post_status = 'publish'
   AND post_type='post' ORDER BY comment_count DESC LIMIT 0,10")

   // Echo the ID of the 4th most commented post
   echo $posts[3]->ID;
?>

get_var načte jedinou hodnotu:


<?php
   $email = $wpdb->get_var("SELECT user_email FROM wp_users WHERE user_login = 'danielpataki' ")

   // Echo the user's email address
   echo $email;
?>

Vkládání do databáze


<?php
   // syntaxe: $wpdb->insert( $table, $data, $format);
   $wpdb->insert($wpdb->usermeta, array("user_id" => 1, "meta_key" => "awesome_factor", "meta_value" => 10), array("%d", %s", "%d"));

   // odpovídá:
   // INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES (1, "awesome_factor", 10);
?>

Updatování databáze:


// $wpdb->update($table, $data, $where, $format = null, $where_format = null);

   // $where parameter - can be an array in the form of column-value pairs:
   $wpdb->update( $wpdb->posts, array("post_title" => "Modified Post Title"), array("ID" => 5), array("%s"), array("%d") );

Zdroj »

Odstranění skoku u odkazu „Číst dále“

Mě osobně irituje, když po kliknutí na tlačítko „Číst dále“ mě to automaticky hodí někam doprostřed článku. Nemám rád podobné skoky prohlížeče, já si tam totiž dokážu zascrollovat sám. A protože myslím na svého návštěvníka, tak něco podobného může u mě najít pouze ve spojení s komentáři. Návod, jak situaci s tagem MORE vyřešit nám […]

Jak na manuální upgrade zastaralých verzí WordPressu

Při upgrade WordPressu ze starších verzí (např. z 2.x.x na 3.x.x), kde ještě není k dispozici tlačítko pro upgrade, je doporučen tento postup:

1. Backup your wordpress folder and database.

2. Disable all your active plugins.

3. Delete your wp-admin, wp-includes folder.

4. DO NOT DELETE your wp-content folder and your mysql database. Just leave as it is.

5. Go to main wordpress folder, a) backup .htaccess and wp-config.php, b) delete all the files including .htaccess and wp-config.php

6. Download the latest version of wordpress, unpack it in your desktop.

7. Upload to your server by FTP only the wordpress wp-admin, wp-includes folders and all files in the wordpress folder.

8. Update wp-config.php correct database connection with settings from older version and upload it.

9. Launch http://yourblog.com/wp-admin/upgrade.php to proceed database upgrade.

10. Go to wordpress > settings > permalinks click, select and save the permalinks you used before.

11. Activate all the plugins and your theme.

12. Update plugins.

12. Double check your site.

Updating WordPress »
Upgrading WordPress Extended »

Vložení audio přehrávače

Audio Player 2.0
http://wordpress.org/extend/plugins/audio-player/
http://wpaudioplayer.com/

The default mechanism for inserting a player in a post is to use the syntax:

This will insert a player and load your_mp3_file.mp3 into it.

Using the WordPress Media Library is by far the simplest way of using Audio Player. If you are using WP 2.5 or higher, you can use the Add Audio button. After select a file from your computer and uploading it via the Media Library screen, select the Audio Player option for the Link URL.

FAQ »

*Alternativy*

Spotify Play Button
http://wordpress.org/extend/plugins/spotify-play-button-for-wordpress/

Easily added to post or page for instant play of album, playlist or song.

Haiku minimalist audio player
http://wordpress.org/extend/plugins/haiku-minimalist-audio-player/

A simple HTML5-based audio player that inserts a text link or graphical player for audio playback. Compatible with WP Audio Player style links, fully accessible and degrades gracefully, and includes Google Analytics tracking of audio plays.

HTML5 jQuery Audio Player
http://wordpress.org/extend/plugins/html5-jquery-audio-player/

This trendy looking music player lets you add a single audio track or a full playlist to your WordPress site using shortcode. You can customise the colours of the player, and also display ratings, album cover art, and buy/download link if needed. This audio player is different from others on offer because it works on all major browsers, both PC and Mac, and on mobile devices including iPhone/iPad.

Rozšířené možnosti štítkování

Simple Tags
http://wordpress.org/extend/plugins/simple-tags/

Add some tools for taxonomies: Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Auto terms, Advanced manage term. Compatible with TinyMCE, FCKeditor, WYMeditor and QuickTags.

– tags suggestion from Yahoo! Term Extraction API, OpenCalais, Alchemy, Zemanta, Tag The Net, Local DB with AJAX request
– tags management (rename, delete, merge, search and add tags, edit tags ID)
– mass edit tags (more than 50 posts once)
– auto link tags in post content
– auto tags
– type-ahead input tags / autocompletion Ajax
– click tags
– possibility to tag pages (not only posts) and include them inside the tags results