Subscribe: Comments for Web Development Blog
http://www.web-development-blog.com/comments/feed/
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
build wordpress  cache  comment build  comment  create  custom  lederer  olaf lederer  olaf  preg match  resource  slider  wordpress slider 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments for Web Development Blog

Comments for Web Development Blog



Read about Website Development, Online Marketing, WordPress and Web Hosting



Last Build Date: Tue, 06 Mar 2018 06:55:59 +0000

 



Comment on How to build a WordPress image slider by Olaf Lederer

Tue, 06 Mar 2018 06:55:59 +0000

Hi, just use the button inside the featured image meta box (for each slide post you create)



Comment on How to build a WordPress image slider by Bekkah

Thu, 08 Feb 2018 20:16:50 +0000

I'm not a total beginner, per se, but it would be nice to add how to add the images to the slider once the custom post type is created. There seems to be a lot missing from this tutorial.



Comment on How to build a WordPress image slider by Olaf Lederer

Mon, 13 Nov 2017 07:32:43 +0000

Hello Jay, Did you noticed the function "create_slider_location_tax"? That one creates already a custom taxonomy and this is used inside the shortcode. So in fact anything you're looking for is included in the code :)



Comment on PHP cache tutorial: How to cache your dynamic website by Olaf Lederer

Mon, 13 Nov 2017 07:28:06 +0000

Hi Tomasz, you're right this basic example is good to create some simple cache and not the best way to do it on high traffic sites. In one of my comments I suggested to use the flock function, but this is still to simple for a full site cache function. There are much better ways and projects to do that. Thanks for sharing your resource link!



Comment on PHP cache tutorial: How to cache your dynamic website by Tomasz Zadora

Fri, 03 Nov 2017 12:35:16 +0000

The important thing, often overlooked when there is discussion about caching, is process synchronisation to avoid thread race (see: https://en.wikipedia.org/wiki/Race_condition). Typical caching scenario in PHP without synchronisation looks like this: if you don't have resource in the cache, or resource is expired, it must be created and put into cache. First thread/process that happens to enocunter such condition is trying to create resource, and during that time, other threads will also create the resource, which leads to thread race, cache slamming and performance downspike. Problem is magnified by number of concurrent threads and workload created by resource creation task. On busy systems it may lead to serious problems. There is very few caching systems for PHP that takes it into consideration synchronisation. One of them is php-no-slam-cache: https://github.com/tztztztz/php-no-slam-cache



Comment on How to build a WordPress image slider by jay

Fri, 18 Aug 2017 10:43:07 +0000

HI there, this is great. I am using this for a custom theme build. I just have a couple of questions. first i would like to be able to add a separate slider for the home page, which i will then call on front-page.php. what do you think is the best way to go about this? 1) creating a new custom post type that is just for the home page slider (obviously changing function names)? would this be best? 2) creating slider categories instead of custom taxonomy? 3) any other ways that would be best? I have previously created custom post categories and am familiar with how to call things and close loops properly with WPQuery (i.e. best practices) thanks so much for your code. J



Comment on Create a dynamic menu in PHP by Olaf Lederer

Wed, 28 Jun 2017 06:07:46 +0000

Thanks Dan, I guess I did some wrong copy/paste from my demo page :) The code is fixed.



Comment on Create a dynamic menu in PHP by Dan

Sat, 17 Jun 2017 06:59:14 +0000

Good script. However, there seems to be an error on lines 4 and 5 : $db = new mysqli('localhost', 'db_user', 'db_password', 'db_name')) { $items = $db->("SELECT id, label, link_url, parent_id FROM dyn_menu ORDER BY parent_id, id ASC"); Line 4 : Should remove the ending ){ and replace /close it with ; Line 5 : Forgot to add the query method $items = $db->query("SELECT id, label, link_url, parent_id FROM dyn_menu ORDER BY parent_id, id ASC");



Comment on Parse html with preg_match and preg_match_all by Olaf Lederer

Thu, 18 May 2017 05:50:03 +0000

You need to load the file first into a string or array. After that you can check the string against the regex pattern. Maybe you need to use look if your data is stored in an array. It doesn't work that simple.



Comment on Parse html with preg_match and preg_match_all by Ann

Mon, 15 May 2017 10:42:22 +0000

Hi Olaf Lederer, I have added file_get_contents() and all. The $file contains the path to the file with file_get_contents(). I didn't paste my entire code here. I just added only the required line here.