• Thanks to michael he told me a plugin that lets me tell wordpress what page I can have for my HOMEPAGE so that i have one thing that never changes and is the first page people see when they arrive.

    My Goal is to have something like this

    HOMEPAGE
    PAGE 1
    PAGE 2
    PAGE 3
    PAGE 4
    PAGE 5

    Each page would be a differen theme like,

    American Express
    Chase
    discover
    Advanta
    etc..

    I want to know if I can then create a post and tell it to show up on one of the pages?.. so basically when someone clicks on american express they will see my american express posts.. kind of like a category..

    basically the pages would be like categories but with information on then at the bottom would be posts that people click on

    so when someone click americna express it might look like this

    Welcome to my american express homepage, balh ablahahdsjfjsdkfsdlkfjdslkjfksdjflksdjfkljdslkf

    Articles on american express

    Post TITLE 1
    Post TITLE 2
    POST TITLE 3

    then when someone clicks on anyone of those post titles it takes them to that post

    I would use categories but.. you cant type text on a category page can you?

Viewing 11 replies - 1 through 11 (of 11 total)
  • you can create category specific templates. So if AE is cat #1, you have category-1.php, with specific code, etc.

    Category_Templates

    I posted in your previous thread regarding the home page, you can also create a home.php to specify what goes on the main page.
    Template_Hierarchy#The_Main_Page

    And you can make that home page sans loop to display static text, kinda like a splash page. You mentioned having a page that never changes, so using miklb’s suggestion of a home.php file is perfect for this, just don’t put in the loop.

    Thread Starter eddyj

    (@eddyj)

    Will those category templates let me TYPE on them.. like a page??

    Reason is usually when you click on a category page it just lists your posts from new to oldest.. what if i want information text on that page.. how can i type on that category page?

    Thread Starter eddyj

    (@eddyj)

    sorry jon landrum i didnt understand you.. can you show me an example of a site.. as I didnt get you..

    I was told i should use a plugin https://www.ilfilosofo.com/blog/home-page-control/ to do the homepage thing.. this way i would be using a PAGE for a homepage.. my quesiton though is what would happen to the thing that usually shows it.. will that disappear what is the name of it. home.php or index.php

    Thread Starter eddyj

    (@eddyj)

    miklb.. so are you saying.. dont do pages for

    american express
    chase
    discover

    etc…

    but use category templates?

    and lets say my current template uses INDEX.PHP for the first page to display are you saying.. dont use the plugin, just load up dreamweaver and create a blank php page and name it home.php and upload it. and then that will become my homepage? if that is correct would i then delete the index.php after?

    eddyj, I think this page will help you out. The way I made my home.php is I uploaded a new, blank file (not with Dreamweaver; just FTP an empty text document and rename it home.php), then I copied everything in index.php and pasted it in the new home.php file. After that you can modify at will. The thing you’re probably looking for is to take out the Loop and replace it with your own paragraph of text. I did something in between these two extremes on my page. I still have the loop, but I’ve limited it to one post, and I have static text above the loop that stays there. I didn’t use any plugins (not to say you couldn’t; I just am an old-school HTML’er, and it was easier and faster for me to code it by hand.)

    PS: there is, however, a plugin mentioned on the first link I posted that will give you control over your home page. It’s the Static Front Page plugin.

    I’d like to have a static homepage, but I’d also like to have a static blog page. Lemme explain:

    I have a blog on Yahoo! 360 that I’m happy with and I don’t feel like setting up a whole new blog with WP; I’m more or less using WP as a CMS rather than a blog platform. What I’m currently doing on my non-WP’d site, https://www.deanish.com/blog.html, is syndicating the blog posts via a JavaScript which in turn displays my posts from Y360. I tried creating a Page w/in WordPress and inserted the JavaScript but, as with every other PHP-based software, JavaScript and PHP don’t play together that way. The only alternative I could think of was to create a blog page, like the home page discussed above, but I’m not sure 1) if this is possible (does WP only recognize home.php or would it also recognize blog.php?), and 2) how would I get the link for the blog to show up in my menu of static WP Pages? Or better yet, is there a way to get JavaScript to work in a Page created in WP’s backend? It looks like Il Filosofo’s Home Page Control plug-in would be great, but that doesn’t resolve my PHP/JavaScript issues. Thanks in advance ??

    I found the article about Using JavaScript, which tells me to insert JavaScript as a link to the source file… unfortunately, I’m not proficient enough with JS to know how to create a source file from the inline code – maybe someone could do it for me?

    Here’s the inline code:

    <script language="JavaScript" src="https://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fblog.360.yahoo.com%2Frss-Jy_mUNs1fqeQ2Ail8hBPPseoL0Jevo4-%3Fcq%3D1&amp;date=y&amp;utf=y&amp;html=a" type="text/javascript"></script>
    <noscript><a href="https://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fblog.360.yahoo.com%2Frss-Jy_mUNs1fqeQ2Ail8hBPPseoL0Jevo4-%3Fcq%3D1&amp;date=y&amp;utf=y&amp;html=y">View RSS feed</a></noscript>

    @eddyj: as the old saying goes, there is more than one way to skin a cat, so to in WP there are generally more than one way to accomplish a goal. Sometimes it comes down to how much “under the hood” you want to get. Sometimes, you don’t have a choice. Regarding the category templates. You are correct, the default theme, and most themes, the category page is simply a list of all the posts for that category. But has jonlandrum has mentioned regarding a home.php file, you can customize that page however you want. You can create custom, multiple loops, so as to sticky a post to the top, and list however you’d like the remaining posts for that category.

    I will say though that without getting into the code, and trying to use just plugins, you will be limiting your options, and I’m not familiar with any means of showing a post on a page, again, without possibly writing a custom page template, which then puts you back to the category templates.
    If you are interested in the custom templates, along with the links provided, you will want to look at The_Loop.

    After that, post back with any specific questions you have regarding the templates, or any other areas for that matter.

    @dean — what you want to do is create a custom Page template, and instert the javascript into that, not the posting box for the page.

    Pages is a good starting point for that, as well as a quick search for custom page template. It’s quite easy, once you look at it, but feel free to post back if you run into any problems, I’ll keep an eye on this thread.

    Thanks Mike, that helped a lot. Just one problem – the comments at the bottom of my Home page are not disabled, but kinda act like they are (they should be enabled). There’s no way to post comments on that page, but the other pages are OK. Any ideas?

    One more question – I may or may not decide to move my installation to my root folder. How easy is that to do?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to display Posts within Pages instead of homepage’ is closed to new replies.