WordPress.org

Ready to get started?Download WordPress

Forums

Ok, hm, Beyond messed up, haha -- RSS Feed, feed doesn't exist? (31 posts)

  1. Lifline Marketing
    Member
    Posted 10 months ago #

    I started a thread last week mentioning an issue I was having trying to integrate WP into my site and frankly, I've exhausted many hours on this and can't hammer it out so I'm just accepting my PHP knowledge is not where it needs to be.

    I came across CG-Feedread and it appears to be a solution, and seems others have used it successfully, but where I'm having trouble is my blog doesn't even show up. Anywhere. I un-installed and re-installed WP onto my server in a sub-directory, it installed again fine as I'm able to log into the wp-admin. But if I create a post, when I click "view post" in the dashboard, it just takes me to the index of the site. When I just try to type in http://lifline.com/blog , it's just blank. It also tells me, as does Feed Validator, that the feed to my blog doesn't even exist?????

    I'm merely trying display blog posts in a .php file in the root directory, pulling the feed from the WP installed on my server, in its sub-directory.

    Any help would be GREATLY appreciated.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Where did you download this plugin from?

  3. Lifline Marketing
    Member
    Posted 10 months ago #

    http://www.intmath.com/blog/adding-feeds-with-cg-feedread-a-tutorial/213

    This. The site itself is not a WP site, it's HTML/CSS currently because of deadlines for my employer. As I said, my goal is to have a .php page in the root directory, pull from the blog directory. I'm willing to do anything time-wise to solve the issue. As of now, we have less than 100 pages so, while tedious, I'd be willing to convert EVERYTHING over to .php if I have to.

    And apparently, that CG-Feedread isn't a WP plug-in but simply a server-side plug-in to bridge your site with WP? Am I understanding that correctly?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Correct - it's not a WordPress plugin and will (almost certainly) not work on a WordPress site until it is turned into a plugin. Are you perhaps looking to integrate WordPress with your web site?

  5. Lifline Marketing
    Member
    Posted 10 months ago #

    I am, and I've been through that link, as well as most threads in these forums and I still was unable to get it work properly.

    As other forum threads have attempted to figure out (to success, unlike me, lol), I am looking for the pages talking about pulling the header and using the loop, to be one, singular page in my root directory (a .php page, of course) and to pull from said wordpress and said database in the blog folder. I've set all that up all ready.

    I tried a custom theme as suggested in other threads and that butchered it even more.

    The CG-Feedread is merely php scripting for a php page to pull from the wordpress database using similar functions and retrievals. It actually showed up on my site no problem at first but then I experienced the issue that led me to creating this thread:

    I have no idea, any longer, how to access my blog or its feed and why posts I've created don't show up (just a blank page) or it links back to my index. I've gone through Feed Validators, and tried going right to the feed URL's, and it says the feed doesn't exist. It's like it is not installed. But as I said, I'm able to log in, I reinstalled the default theme, I'm able to create posts; all the normal WP functions.

    For the TLDR; CG-Feedread seems like it will work if my blog and feed appeared to exist. I'd be happy to use the Loop and Grab Header, if I can simply put that on my singular blog.php page and have it pull from the wordpress installed/SQL database on the server.

    Thanks for the reply, esmi.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Can you clarify exactly what it is that you are trying to do?

  7. Lifline Marketing
    Member
    Posted 10 months ago #

    Sure.

    Ok, so much like other threads and the logic behind that link you shared with me, I'm looking to have a a .php website page "be" the company's blog, but the .php page have the same header, footer, and layout of the rest of the website (Ie., Use the blog.html page as the shell, as blog.php, and the content in the body, display the blog posts).

    Theoretically, I should be to simply 'Grab the header' like in the link, paste it into the top of my blog.php file, have a loop in the body where I desire the content, make sure the header feeds from the appropriate path to the appropriate folders, and be good to go, correct? At least that is what I gleam is the goal from that link.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Assuming that you want the single Posts to continue to reflect the corporate design of the main site, what you effectively need to do is create a new custom theme based on your existing main site's design. That's going to take a bit more than just dropping in the header, footer etc markup.

    integrating WordPress with your web site does explain how you can pull unstyled posts from your WP site into your main site (presumably using your blog.php page) and then style theme using your main site/s CSS. The problem with this technique, however, is that, whilst it's pretty easy, as soon as you drill down into single Posts, you start losing that seamless design skin and you revert back to whatever theme you are actually using in the WP install.

    I'd argue that the best way to proceed to to use a decent starter theme (like http://wordpress.org/themes/toolbox ) and use it to create your own theme that matches your main site.

  9. Lifline Marketing
    Member
    Posted 10 months ago #

    Following that path of creating a custom theme, what are the steps? Is there a useful link? Looking at the bottom of the 'Integrating...' link, I followed it over to 'Theme Development' and now I'm a bit more confused than I was before, haha.

    All that said, and as helpful as the links are esmi, it still doesn't solve my one, most pressing issue; I can't seem to find a way to access my blog outside of the wp-admin, despite it being installed and having at least one post, so regardless of the route I have to go to make it look like my corporate site, I don't want to put in that amount of time if there's a deeper error here.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    it still doesn't solve my one, most pressing issue; I can't seem to find a way to access my blog outside of the wp-admin

    Sorry - I missed that bit...

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of your current version of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  11. Lifline Marketing
    Member
    Posted 10 months ago #

    - I have no plug-ins installed

    - I have deleted the previously attempted custom theme and defaulted back to twentytwelve

    - I have done two, wipe everything in my blog folder and re-download, re-installs, and still nothing. I'll go back to wordpress.org, re-download WP, I'll delete everything off of the server except the content folder this time, and re-install everything else, again.

  12. Lifline Marketing
    Member
    Posted 10 months ago #

    ok,

    http://www.lifline.com/blog/

    We at least have stuff showing up now! Haha. So I thank you for that esmi. Now, I actually like this layout enough that messing with the colors and styles for this shouldn't be too bad (I can probably copy over my normal style sheet). It's not even so much that I need the whole page to look like the corporate site, really, I just need to be able to include the main site header with the logo & telephone number, the drop down navigation, and the footer. My site's header and footer can wrap around everything WP shows, that won't be a problem, if it's possible; I'd just like to really be able to use the top and bottom "shell" of the corporate site.

  13. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Glad to hear that you're making progress. :-)

    Before you start editing that theme, create a child theme for your changes. Or install a custom CSS plugin.

  14. Lifline Marketing
    Member
    Posted 10 months ago #

    Ok, let me see if I am moving in the right direction with what I'm looking to do, with your suggestions:

    - I follow either the child them directions or custom CSS plug-in.

    - Considering I'm looking to do this for simply the blog, I can theoretically create just 1 template/theme, correct? I believe this is the point where I got all messed up the first time; applying the php scripting and headings correctly.

    With the theme, what more do I need to do than just the index, header, footer? Also, does each .php file need that 'Grab a header?' I think that's where I went down the wrong path initially; I was just throwing the php header everywhere.

    Esmi, thanks for your help.

  15. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    I follow either the child them directions or custom CSS plug-in.

    Yes - otherwise your changes will be over-written when you update the theme.

    I can theoretically create just 1 template/theme, correct?

    In theory, yes. You can have a theme with just a single index.php template file. but in practice, this rarely works as different things tend to be wanted on different kinds of pages - eg. comments & a comment form are needed on a single Post but not on an archive (post listing) page. In order to pull this off in a single template theme, you'd need to use lots of conditional blocks that could quickly make the file's code difficult to follow. Believe it or not, multi-file themes are often a lot easier to wrangle.

    does each .php file need that 'Grab a header?'

    In general, the only template file that would not need a get_header() line would be sidebar.php, comments.php and footer.php. That's because these files are called into other template files using get_sidebar(), wp_list_comments() and get_footer. The same would also go for any file that is called by get_tempate_part().

  16. Lifline Marketing
    Member
    Posted 10 months ago #

    So, for the theme, I would need to have custom comment files, the sidebar thing, etc.? Within those files, what goes in for mark-up in terms of HTML to mimic my main site?

    Where I got messed up before, attempting to follow the original Integrating WordPress link, I got all the way to the custom theme part, followed some threads in creating the header.php with the header coding, and the 'head' section of my template html page for my corporate design; I did the same with the index -- with the body of my template html filling out this page with the php coding above it. Was that somewhat down the right path?

    I think ran into some big problems by not changing the URI information and stuff at the top of the custom style sheet...

  17. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    So, for the theme, I would need to have custom comment files, the sidebar thing, etc.?

    Generally speaking, I think a basic theme should contain at least the following:

    header.php
    index.php
    comments.php
    single.php
    page.php
    footer.php
    sidebar.php

    The last file assumes that your theme is to have at least one widget ready area (which is what a sidebar.php file is for). You'd also need a style.css file and probably a functions.php file. I had a very quick look through the theme repository to see if I could locate this kind of very basic theme for you but sadly I couldn't find one. I'm now sitting here wondering how quickly I could whip such a theme up...

  18. Lifline Marketing
    Member
    Posted 10 months ago #

    I'd certainly be able to create such files in Dreamweaver. I'm just curious how plug in my HTML mark-up for the construct, nav, etc., without throwing off any of the php paths or headings.

    Thanks for all your help!

  19. Lifline Marketing
    Member
    Posted 10 months ago #

    Hi esmi, hoping we're able to hammer out this problem finally today, if able to. Do you have any sure-fire resources for building those pages in Dreamweaver or how else to easily build the custom theme?

  20. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Sorry - I don't use Dreamweaver. Never have done. I use Textpad.

  21. Lifline Marketing
    Member
    Posted 10 months ago #

    Dreamweaver can work the same as any normal text editor and any file type can be saved, so in terms of writing/coding these theme files, I can do it the same way as you.

  22. Lifline Marketing
    Member
    Posted 10 months ago #

    http://lifehacker.com/5890139/how-to-create-a-custom-theme-for-your-wordpress-blog-with-minimal-coding-required

    I stumbled on this link and it appears they provide blank theme .php pages like what you were referencing earlier. If I start with those, and my HTML/CSS from the existing corporate site, this is something I should be able to accomplish in less than a day, yes?

    This all seems to fall in line with what you suggest for me to do...

  23. Lifline Marketing
    Member
    Posted 10 months ago #

  24. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    That basic theme is a little old. It's using XHTML Transitional whilst most new modern theme use HTML5.

  25. Lifline Marketing
    Member
    Posted 10 months ago #

    Dreamweaver does allow for any file type to be saved so theoretically, I could do all the coding in their XHTML theme templates and then save them in the extension type best used with HTML5.

  26. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    No! All template files need to be saved as plain text with the .php extension.

  27. Lifline Marketing
    Member
    Posted 10 months ago #

    Also, I do have both the twentytwelve & twenty11 downloaded, could I not edit the appropriate php files I need to from those themes (I can load php files with Dreamweaver and edit code, and preview changes) and then just save them as custom theme files?

    That seems as if it'd be easiest if it's possible to do it that way.

  28. Lifline Marketing
    Member
    Posted 10 months ago #

    I posted that response without seeing your reply.

  29. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    If you want to use any theme from wordpress,org as a basis for your own theme, then I'd suggest forking (copying) the theme under a new name.

  30. Lifline Marketing
    Member
    Posted 10 months ago #

    So (and again thank you for your help, my technical expertise falls more in line with graphic design and the creative side of marketing, but doing this for a small business, much has to be self-taught and done in house) I could copy all of the theme files from say twentytwelve and edit them as my custom? Which if I do it that way, it seems that I'd be able to either just copy over coding from my HTML files into text files to save as php, or edit the theme files in the installed editor? Upload my own full CSS sheet, change the URI, and go from there? As I've stated, I only really have to requirements from a corporate standpoint, the header & footer.

Reply »

You must log in to post.

About this Topic