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
| $category_id = get_cat_id( single_cat_title("",false) ); | |
| sau: | |
| $category = get_the_category(); | |
| $category_id = $category[0]->cat_ID; |
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
| La register_post_type trebuie adaugat : | |
| 'taxonomies' => array('category') | |
| Ex: | |
| add_action( 'init', 'trustedtherapist_create_post_type' ); | |
| function trustedtherapist_create_post_type() { | |
| register_post_type( 'case', | |
| array( | |
| 'labels' => array( | |
| 'name' => __( 'Cases' ), |
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
| <div class="theme-pic"> | |
| <img src="http://cdn.themeisle.com/wp-content/uploads/edd/2014/04/cl_ss_01-289x150.jpg"> | |
| <div class="overlay"></div> | |
| </div> | |
| .overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; |
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
| Traducere plugin: | |
| In fisierul principal: | |
| function a_testimonial_basics_plugin_setup () { | |
| load_plugin_textdomain('TweetOldPost', false, 'tweet-old-post/languages'); | |
| } | |
| add_action( 'plugins_loaded','a_testimonial_basics_plugin_setup'); | |
| Si fisiere .mo si .po din languages se numesc: |
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
| $th_price = edd_get_download_price(get_the_ID()); // pretul neformatat | |
| Functii: | |
| http://sunnyratilal.github.io/api-docs/ |
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
| <div class=frame> | |
| <span class="helper"></span><img src="http://jsfiddle.net/img/logo.png" height=250 /> | |
| </div> | |
| .helper { | |
| display: inline-block; | |
| height: 100%; | |
| vertical-align: middle; | |
| } |
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
| !!!!!!!!!!!!!!!!!!!!!! | |
| Valori default: | |
| - trebuie sa pun si default la setting-ul respectiv | |
| - cat si sa pun valoare default atunci cand iau valoarea cu get_theme_mod | |
| $wp_customize->add_setting( 'ti_frontpage_boxthree_content', | |
| 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
| jQuery(function() { | |
| var intputElements = document.getElementsByTagName("INPUT"); | |
| for (var i = 0; i < intputElements.length; i++) { | |
| intputElements[i].oninvalid = function (e) { | |
| e.target.setCustomValidity(""); | |
| if (!e.target.validity.valid) { | |
| if (e.target.name == "my-email") { | |
| e.target.setCustomValidity("Va rugam completati adresa de email!"); | |
| } | |
| else if(e.target.name == "my-password") { |
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
| http://jquery.malsup.com/cycle/ |
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
| Daca folosesc functii php precum file_get_contents() o sa am erori in Theme Check. | |
| Pt a le rezolva, trebuie folosit WP_Filesystem.Aceste metode sunt in general folosite pt partea de admin. | |
| Pt a le folosi, in alta parte, nu in admin: | |
| require_once(ABSPATH . 'wp-admin/includes/file.php'); | |
| WP_Filesystem(); | |
| global $wp_filesystem; |