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
echo get_post_meta($post->ID, 'customFieldName', true); |
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
echo '<a class="permaLink" href="'; | |
echo the_permalink(); | |
echo'" title="'; | |
echo the_title_attribute(); | |
echo'">'; | |
echo the_title(); | |
echo '</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
<object type="image/svg+xml" data="image.svg">Your browser does not support SVG</object> |
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
if ( have_posts() ) { | |
while ( have_posts() ) { | |
the_post(); | |
// add title, content, custom field, ... | |
echo '<div class="posts">'; | |
echo the_title(); | |
echo get_the_content(); | |
//the_content('Preberi več...'); |
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 register_my_menus() { | |
register_nav_menus( | |
array( | |
'header-menu' => __( 'MainMenu' ), | |
'footer-menu' => __( 'FooterMenu' ), | |
'left-menu' => __( 'LeftSideMenu' ) | |
) | |
); | |
} | |
add_action( 'init', 'register_my_menus' ); |
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
https://github.com/twittem/wp-bootstrap-navwalker | |
http://astronautweb.co/2012/10/wordpress-dropdown-bootstrap/ | |
http://code.tutsplus.com/tutorials/how-to-integrate-bootstrap-navbar-into-wordpress-theme--wp-33410 | |
// insert in menu code instead of wordpress menu code | |
<?php | |
wp_nav_menu( array( |
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('show_admin_bar', '__return_false'); |
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 cc_mime_types( $mimes ){ | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'cc_mime_types' ); |
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
<?php | |
/* Always have wp_footer() just before the closing </body> | |
* tag of your theme, or you will break many plugins, which | |
* generally use this hook to reference JavaScript files. | |
*/ | |
wp_footer(); | |
?> |
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
// insert before </head> | |
<?php wp_head(); ?> |