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.

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.

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.

Any update on drama?

Any update on the WordPress drama? I first know about the news from opinion articles written by Syed Balkhi of WPBeginner. Kinda shock and witty. Following the timeline of what happened, it’s an act of cry for help, I think. But I don’t know, as I don’t know Matt personally. Everyone has their own intention and agenda. People is looking how they can benefit from the drama. Not me.

Friday meeting

TGIF, just finished my Friday meeting; communication is a key to everything, know your chain of command, always know where your place is, don’t simply interject other people’s jurisdiction, if you have to, know your people, talk internally first before you go and wash your and other people’s laundry in public. Plan to get some people to get their process updated now.

Review Your Cart
0
Add Coupon Code
Subtotal