{"id":259,"date":"2024-11-22T13:51:21","date_gmt":"2024-11-22T12:51:21","guid":{"rendered":"https:\/\/excursionswithcpp.com\/?p=259"},"modified":"2024-11-22T13:51:21","modified_gmt":"2024-11-22T12:51:21","slug":"notes-on-using-wordpress","status":"publish","type":"post","link":"https:\/\/excursionswithcpp.com\/index.php\/2024\/11\/22\/notes-on-using-wordpress\/","title":{"rendered":"Notes on using WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This web-site is my first public web-site, and following the advice of my web-hotel, I have based it on WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This post is about my experiences with this, and it may be updated from time to time with new insights.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installation was a very easy one-click setup, and it included the current default theme Twenty Twenty-Four, which I chose to work with, to get to my goal as soon as possible: Being able to blog, posting articles on my programming experiences.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This theme can target different goals, among them mine, so the initial work consisted of choosing the main page template and removing all those elements, I didn&#8217;t want.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I found it hard to understand the principles for this theme, some of which perhaps are principles for WordPress as a whole. It was hard to figure out, when was I editing a template, used several places, and when was I working directly on what would be displayed. I miss a source for an overview of this basic structure &#8211; for the theme and for WP in general.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It took me a lot of time and tries to get it right.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So if asked if I would recommend WP as the basis for a web-site, I cannot say a clear &#8220;yes&#8221;, perhaps I can say &#8220;maybe&#8221;, but since I haven&#8217;t used any other frameworks, I don&#8217;t think I can say &#8220;no&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Writing about programs, I need to display code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Code Block Pro&#8221; seemed to work OK, but scrambled my code after a few saves, showing HTML mixed with code that was not formatted to be readable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Currently I am using &#8220;Highlighting Code Block&#8221; by Loos Inc. It shows the code nicely, but when I am in edit mode, it doesn&#8217;t display the line numbers, so to make references to lines in the text, I have to switch in and out of edit mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have any comments, advice, or recommendations to my way of using WordPress and plug-ins, please leave a comment to this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As always &#8211; happy programming!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This web-site is my first public web-site, and following the advice of my web-hotel, I have based it on WordPress. This post is about my experiences with this, and it may be updated from time to time with new insights. Installation was a very easy one-click setup, and it included the current default theme Twenty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-259","post","type-post","status-publish","format-standard","hentry","category-using-wordpress"],"_links":{"self":[{"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":4,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excursionswithcpp.com\/index.php\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}