Categories
Wordpress

WordPress Theme – Template Files

Official link https://developer.wordpress.org/themes/basics/template-files/ index.php Used when the blog page of the website is opened front-page.php Used when the front page of the website is opened 404.php Used when the page or URL is not found on the website archive.php Used when posts from a category, tag or something else are displayed as an archive comments.php […]

Categories
Web IDEs

Online code writing

Online IDEs https://www.w3schools.com/tryit/ https://repl.it/ https://repl.it/graphql https://codepen.io/ https://jsfiddle.net/ https://codesandbox.io/ https://coderpad.io/ https://codeanywhere.com/ https://stackblitz.com/ https://aws.amazon.com/cloud9/ https://codenvy.com/ https://www.gitpod.io/ https://theia-ide.org/ https://coder.com/ https://ideone.com/ https://playcode.io/ https://paiza.io/ https://codeshare.io/ https://jsbin.com/ http://www.editpad.org/ https://www.typeit.org/ https://www.onlinegdb.com/ https://dotnetfiddle.net/ https://glitch.com/ https://www.mycompiler.io/ SQL http://sqlfiddle.com/ https://www.db-fiddle.com/ https://sqliteonline.com/ https://livesql.oracle.com/ https://sqltest.net/ https://repl.it/ C++ http://cpp.sh/ https://www.onlinegdb.com/online_c++_compiler https://www.jdoodle.com/online-compiler-c++/ https://ideone.com/ https://paiza.io/en/projects/new?language=cpp https://repl.it/ https://colab.research.google.com/ Interactive Learning https://ruby.github.io/TryRuby/

Categories
Dekstop IDEs

Qt Creator Tricks

When debugging Press F9 to toggle a breakpoint In the breakpoint view press Space to disable the breakpoint which is selected You can do the same via the contextual menu but this is slower

Categories
Wordpress

WordPress API

https://developer.wordpress.org/reference/ WordPress API Dashboard widgets Database HTTP API Filesystem Global Variables Metadata Options Plugins Quicktags REST API Rewrite Settings Shortcode Theme Modification Transients XML-RPC

Categories
SQL

SQL Comments

Single Line Comments Single line comments start with –. Any text between — and the end of the line will be ignored (will not be executed). The following example uses a single-line comment as an explanation: –Select all: SELECT * FROM Customers; The following example uses a single-line comment to ignore the end of a […]

Categories
Wordpress

Where you can find the value of get_theme_mod

The value of get_theme_mod can be found and customized via the Customizer Click the Customize button at the top left corner when you browse the website

Categories
Wordpress

Display only the excerpt of the post and not the whole content

To display only the excerpt of the post and not the whole content find: the_content in the theme Here is documentation about the_content https://developer.wordpress.org/reference/functions/the_content/ https://developer.wordpress.org/reference/functions/get_the_content/ Change it to the_excerpt. Here is documentation https://developer.wordpress.org/reference/functions/the_excerpt/ Adding Read more to an excerpts function excerpt_readmore($more) { return ‘… <a href=”‘. get_permalink($post->ID) . ‘” class=”readmore”>’ . ‘Read More’ . ‘</a>’; […]

Categories
Text Editors

Sublime Text Tricks

Write html and press Tab The file should be saved with web extension Example: file_name.html This will generate <!DOCTYPE html> <html> <head> <title></title> </head> <body> </body> </html> Write div and press Tab This will generate <div></div> Write div.test and press Tab This will generate <div class=”test”></div> Write link and press Tab This will generate <link […]

Categories
Git

Git Hosting

http://github.com/ https://bitbucket.org/ https://gitlab.com/ https://gitea.com/

Categories
Wordpress

WordPress Plugins

I use