Been testing to write a blog post from different point of view with chatgpt and it give a quite funny result, not very satisfying thou and i wonder if my reader would appreciate things like that, i don’t want them to think that i’m too over
Author: Imran Malik
-
Good Idea Never Dry
Sometimes we just want to simply post something quick to our site, and dont want to go to the hustle to login and all that, just want to open the site quickly write something and click the publish button; like twitter but with out own site. Yes we can do that with email maybe, but who knows now we have some quick method.
-
Goodbye Twenty Fifteen
Despite my deep love to this Twenty Fifteen theme, its time to say goodbye and move on. The theme has been nothing but good to me. The very basic, minimalist but elegant design always make me use this theme for most of my projects. But its time to move on with the new way of doing things. I’m updating to Twenty Twenty Five now.
-
Clone Twitter With WordPress, Or Just The Content Display
Thinking of to clone twitter or X using WordPress? I was that ambitious too. But, thinking about it again, what’s the point? Probably what we really want to achieve is just something simpler. Which is, to display our post or content the same way as how twitter do in the timeline.
I did this and you can see on this site’s homepage.
Plugin I used to achieve this:
1- Ajax load more (to display the post). Also did some custom code here.
2- Stackable (for the tabs, same like twitter profile page).
How to achieve this:
1- Install and activate plugins mentioned above.
2- At Ajax load more plugin’s setting, generate the shortcode to display the post. You can choose your preferred content and which data you want to display here. At first, I prefer you to test first to get the idea how it looks like. Copy the generated shortcode.
3- Paste the shortcode at the page you want to display the post and publish. See first, how it got displayed here.
4- To change how it displays to be same as what I have in my site, go to Ajax load more plugin’s Templates > Repeater Templates. Copy and paste below code under Template Code.
*the code generated by ChatGPT. Please use at your own risk.
<li class="alm-item<?php if ( ! has_post_thumbnail() ) { echo ' no-img'; } ?>"> <?php // Display the post thumbnail if available if ( has_post_thumbnail() ) { the_post_thumbnail( 'alm-thumbnail' ); } ?> <!-- Display the author name and date/time on the same line --> <p class="entry-meta"> <span class="author-name" style="font-weight: bold; color: #ed7070;"><?php the_author(); ?></span> | <span class="post-time"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></span> </p> <!-- Make the excerpt clickable and link to the post --> <a href="<?php the_permalink(); ?>"> <?php the_excerpt(); ?> </a> <!-- Add reply link with comment count --> <p class="reply-link"> <a href="<?php the_permalink(); ?>#respond"> Reply (<?php echo get_comments_number(); ?>) </a> </p> </li>
5- Refresh the page to see whether the post display as per expected.
6- Note that, I wanted to mimic the same user experience in twitter. Which, when user click on a tweet at the timeline, it will open the tweet itself. So, I made the code the same way. When user click on the post at the “timeline”, it will go to the single post page.
7- Because of this, based on your theme setting, you might see the post got underlined. This was due to the post linked to the single post page. You can adjust this in your theme settings.
8- Also note that, to be honest I’m not sure about the impact of this to your site’s SEO etc.
9- Now you can use Stackable’s tab block to create the tabs same as what we have in the twitter’s profile page. This should be easy and straight forward.
-
Happy Holidays
Wishing happy holidays to you and your families. I’m taking a break while taking the opportunity to push my projects to the market as conversion is high! Here to another blessed of year.
-
Create Telegram Mini App Using WordPress
Take out the complexity. There’s lots of ways to define and build App or Web App, and in this case for Telegram Mini App. But for me it’s just the same. Its some kind of website with certain functionality for whatever purpose. And at certain level we could build it using WordPress. Creating Telegram Mini App using WordPress is just matter of integrate Telegram with our WordPress site.
Looking at the mini app trending in #telegram now, there’s couple of core function that we want to try to integrate:
1- Authentication – this includes registering user into our WordPress site using Telegram. Then for those already registered, logging in them using Telegram too. The good news is, Telegram offers seamless authentication especially when we use the Mini App. This means that whenever someone open your WordPress site via Mini App, they automatically got registered or logged in without doing anything. (Whether that’s a good or a bad thing, that’s a different topic for now).
2- Share & Invite – one of the main reasons we want to integrate with Telegram was because we want to utilize their user base, and share/invite function was important part of this.
3- Reward User – users been rewarded with token, coins, NFT and lots of things that I also don’t really understand yet. We would like to get this integrate too so that users are motivated to take action especially on share and invite above.
In this article, we will first cover on how to authenticate our WordPress site using Telegram. A simple flow will look like below. (Below steps assumed that your WordPress site is already ready, and you have some knowledge in both Telegram bot and WordPress.)
1- At Telegram, create a Telegram Bot. Get API token from the bot. We need this to use in our WordPress site. At the same time, we need to set Domain and Web App URL in the Telegram Bot. This is to whitelist our domain within our Telegram bot and set connection via Telegram WebApp.
2- At WordPress site, install WP Telegram Login plugin. Here you will paste your bot API token and make additional setup whichever you feel necessary. I recommend installing WP Telegram plugin too to utilize other Telegram integration with WordPress.
3- At Telegram, test out if your Mini App is working or not.
-
Post 6.7 Upgrade
Post WordPress 6.7 upgrade, something wrong happened with one of my sites that is using #generatepress theme. The “Customize” is weird and not as before. Posted the issue in the forum. Saw someone posted in their forum as well. I tested both generatepress and WordPress 6.7 in fresh install in #tastewp, and apparently no issue. Also installed all the plugins in that site into tastewp as well seems like no issue too. One of the suggestions was to create stage site. Kinda interesting. Which maybe we could make backup from the site and upload the backup somewhere and do some troubleshitting there. I also thought about revert back to version 6.6. Talked to my hosting provider and that is possible but might cause different unexpected issue. So, I put a pause on that for now. Probably want to wait for a week or so to get input from other people. No issue on the front end. Only problem at the “Customizer”.
-
Telegram Ads Newbie
Testing the water of Telegram Ads. Submitted more than 24 hours already but my ads status still In Review. The initial budget that you need to top-up is 20 TON. Based on the current value of TON, some might feel that it is expensive. Maybe Telegram could consider bringing it down to 5 TON. Also, earlier whey I try, you could only advertise link with “t.me” URL. But nowadays I could see ads of external URL too. Maybe can try later. But put the ads within Telegram ecosystem might convert better I think. Need to test that one too.
-
Google form tracking
Recently I made a google a form in sense to track how much money I gave to my kids. In different pov, for my kids to track how much money I own them hahaha (because I don’t hold much cash in hand). So instead of inserting data into spreadsheet, we could use the google form as data feeder for standard input and more user friendly (in my opinion), then connect it with google sheet at the backend. After that, it came to my mind a whole lot of other things that I could and want to track using the same method, sex tracker, how many times I went out with my buddies, how many times I called my mom etc. Obsessed for a while. This actually deferred to you to keep on download various new app to your phone for that kind of purpose.
-
Middling on weekends
Doesn’t feel like weekend since the problem I try to solve didn’t get solved yet. More than 5 hours and counting