snugabug
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Make EMBEDDED WordPress Load FasterNevermind. Since there’s no discernible difference between the php code being used in the blog pages versus me using it in my HTML page since it’s all calling back to the same place, I copied the code from my WP files that displays the blog’s sidebar and pasted that into my HTML page so it would display the sidebar contents. Then I added a widget to the sidebar that displays my latest post.
It doesn’t allow me to display the post itself in full with images and everything like I can with the loop or to customize the look of it 100%, but it at least shows a snippet with a link and loads quickly. I’ll just use this for now until I can find a way to call the individual posts faster.
Thanks!
Forum: Fixing WordPress
In reply to: Make EMBEDDED WordPress Load FasterI looked for ways to do it with RSS before using WP’s own integration method and I couldn’t find anything that didn’t require unreliable third-party plugin/software to be installed and configured that still limited how the post would be displayed. In addition to requiring learning or adding way more coding than it was worth for an end result that still wasn’t neat and fully customizable in appearance with pure css.
WP’s integration method allows me to call exactly the post(s) I want and to have full control over how it displays with just a few lines in the same way the blog itself does. It’s so far been the simplest, cleanest way to do it. That’s why I was wondering if there’s another way to speed it up.
Both the blog and my HTML page are pulling and displaying posts from the same place in the same way. If there are cache features built into WP that make it happen faster with the blog itself, I can’t imagine there isn’t a way I can tap into that. Where in the installation files would there be anything to do with caching?
Forum: Fixing WordPress
In reply to: Make EMBEDDED WordPress Load FasterI’m not sure what you mean. I posted how in my last reply. I use the code for the loop to pull and display the posts.
https://codex.ww.wp.xz.cn/Integrating_WordPress_with_Your_Website
Forum: Fixing WordPress
In reply to: Make EMBEDDED WordPress Load Fasterhttps://codex.ww.wp.xz.cn/Integrating_WordPress_with_Your_Website
I have my own website with my own hosting and domain. I installed WP on my server but I don’t actually use the blog. I don’t want to edit the WP files to get the blog to look like the rest of my website, I don’t want it to have its own standalone page, and I don’t need all of WP’s features. All I need is the content of the posts.
So instead of displaying the actual blog, I chose to integrate the posts from it into a page on my site using the loop and made the appropriate changes so the server would tell that HTML page to properly render the PHP.
It works as intended. Whatever the latest post is that I create in my WP admin is embedded in that HTML page, but the post takes forever to load and I’d like to know if there’s something I can change to speed it up.
You’re saying to cache it. Cache what where and how? You asked what the loop has to do with anything. Everything I’ve ever found on the subject, including on here, said there’s no way to embed WP posts directly into a page on your website except by using the loop to call and display the posts. That’s why I’m using the loop.
Is there something I’m missing?
Forum: Fixing WordPress
In reply to: Make EMBEDDED WordPress Load FasterThanks! Just to clarify, I have WP installed on my server and I’m using the loop to display the posts. How do I set it so that it will cache them? Is that something I’d have to change in the loop code or in the WP files on my server?
Forum: Fixing WordPress
In reply to: No Sticky Posts Option WordPress 4.1 GodaddyNevermind! I had a hunch and it was right, so I’ll mention it here for anyone else who has this problem.
I have two users, one admin and one author. I created the posts under the author login and thought I could make them a sticky with it too, but it turns out I only get the option to sticky posts when I’m signed in as an admin. I don’t remember that being mentioned anywhere. Thanks!
Forum: Requests and Feedback
In reply to: Deleting ww.wp.xz.cn Account?Cool, thanks a lot!
Forum: Fixing WordPress
In reply to: Embed Posts in HTML PageSolution found on Stackoverflow!
They said that instead of using ./ to use the ../ in front of the path on the require line and that worked like a charm. Amazing it took two days for me to find someone who was able to answer something so simple lol
Thanks everyone! Now I can move on to the good stuff lol
Forum: Fixing WordPress
In reply to: Embed Posts in HTML PageUgh… I’ve been at this for two days and I’m starting to see why so many people don’t use wordpress. It may be “feature rich” and able to do “a lot” but what good is it if you can’t get it to do something very simple like display posts without having to be a programmer?
I really wanted to use wordpress instead of tumblr, which makes embedding posts easy with one line of code, but if I can’t embed the posts seamlessly into my html page, it’s pointless. I don’t want to build my site around wordpress or have it on a standalone page skinned to mimic the rest of my site. I just want to display the posts.
I’ll see if I can find someone who can help somewhere else and just post the answer here when I find it.
Forum: Fixing WordPress
In reply to: Embed Posts in HTML PageHow am I supposed to write the link in the above code to get it to link to the proper place?
Forum: Fixing WordPress
In reply to: Embed Posts in HTML PageYeah that’s one of the tutorials that didn’t help.