WordPress.org

Ready to get started?Download WordPress

Forums

"Pages" that display other websites. (54 posts)

  1. Mugsy
    Member
    Posted 1 year ago #

    Esmi, thanks for the follow-up. Sadly, my custom theme "does not natively support menus" (I'm not entirely sure why), so that page is disabled (suggesting the "Custom Menu widget") but adding those links to the "Sidebar" isn't exactly what I'm looking for.

    I recognize that "framing" a different file/script is "a different ballgame", but I'm trying to devise a solution that doesn't require a massive overhaul of how WP works.

    Regarding others' concern for "bandwidth theft", there's a difference between someone trying to be helpful (like you) and someone that chimes in purely to accuse me of "theft" based upon their own misconception of what I'm trying to do.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm not entirely sure why

    All recent themes should be supporting custom menus by now. Have you had a look at implementing custom menus in a theme?

  3. Mugsy
    Member
    Posted 1 year ago #

    Esmi, it's not really that big a deal since I can just use the "Widget" method (and I already use a plugin that allows Page links to call sites), but my theme is my own creation (based on a WP template). I've been using my Theme for about three years, and the template it's based on is certainly older than that.

    But no matter, the "Custom Menu" solution simply allows me to link to a completely separate remote site/file. Not quite what I need.

    I think my "PC Review" example describes it best. You don't want a separate website for every subject (Drives, Monitors, Video Cards, etc). You want all of those items in the same site. And the ability to POST a review and discuss individual new items (instead of one comment field for twenty different video cards going back months or years.)

    If my "use a link" idea is too cumbersome or impractical, ignore it. It was just a suggestion for another way to do what I've been needing: Multiple POST pages.

    I think this thread has diverted WAY off the subject by focusing too much on "linking to pages" rather than WHY I suggested it in the first place.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I've been using my Theme for about three years, and the template it's based on is certainly older than that.

    Then, with the greatest respect, it's about time you updated it. An awful lot has changed in 3 years. :-)

  5. Mugsy
    Member
    Posted 1 year ago #

    There's nothing "crucial" not available to my Theme to justify putting all the work necessary to recreating it using a newer theme.

    I need a good "three column" Theme as the basis for a new one.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Have you had a look at Toolbox? Or Thematic?

  7. Mugsy
    Member
    Posted 1 year ago #

    I saw Toolbox, but it appears to be a 2 column theme and I'm currently configured for a three column theme. Not sure what's required to reconfigure it, but it would already be significant trouble just to recreate my Theme using my existing Template. I have neither the Need nor Desire to put in any more work than I have to at this point.

    Updating my Theme just isn't on my radar right now.

  8. I wasn't accusing you, I was telling you what it is. (Look, we can quibble over what defines bandwidth theft, but embedding external sites in frames falls under a couple sub0sets of it, and it's just a bad idea in general).

    Now including your OWN posts in your own posts is ... weird :)

    http://wordpress.org/extend/plugins/embed-posts/ is an example of a plugin that can do it.

    I think my "PC Review" example describes it best. You don't want a separate website for every subject (Drives, Monitors, Video Cards, etc). You want all of those items in the same site. And the ability to POST a review and discuss individual new items (instead of one comment field for twenty different video cards going back months or years.)

    So you want a 'Drives' page that embeds the latest data from drives, with those comments, and you can update it whenever you have a new latest?

    There really isn't a great way around that, as you've noted, because if you embed the content, you'll get the comments for the page upon which you embedded (i.e. if Drives is the page you send people to and Drives-1999 is the data, your comments will be on Drives).

    So your proposed workaround is to embed, and I can see why you think it's logical. Everyone always goes to domain.com/drives, and the content and comments magically update when there's something new.

    But ... that's just a strange way to go about it, when you could use categories or custom post-types (or Multisite, though I think that's totally overkill). And sadly even if you did embed, you run the risk of buggering WP because of the nesting (I imagine it would slow your site down).

    If you forced me to do it, I'd use Custom Post-Types, call 'em drives, and make sure archiving is on. Then in my archive page, I'd pull the latest and greatest post as what shows up, and have a link for 'Comments' which sends them to the sub-page for comments (because having comments on archive pages messes with pagination). Then when I make a new post, the 'archive' page for drives (aka domain.com/drives/) is always the latest.

    Thus you're using WP as intended, pages/posts as intended, and you don't have to reinvent the wheel.

  9. Mugsy
    Member
    Posted 1 year ago #

    That sounds a bit clunky ("archiving" with Comments on a separate page) and confusing.

    While I don't actually have a "PC Review" site like my example, I visit such sites frequently. They'll review the latest Video Card or the latest Hard Drive and allow visitors to Comment (typically their own experiences with that device). Just like on a standard WP Home Page, they might blog about a new device every week. You can scroll down to read past reviews and comment on them.

    But when you can only have ONE homepage, you would have to mix hard drives, with video cards, with CPU's to maintain that format. It would be great to have separate pages just for "Monitors" or just for "hard drives", etc.

    In my own case, I run a Political blog, but would like separate pages for non-political topics, or dedicated pages for specific issues (without requiring visitors to "filter" contents by Category (I already do that).

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    when you can only have ONE homepage, you would have to mix hard drives, with video cards, with CPU's to maintain that format. It would be great to have separate pages just for "Monitors" or just for "hard drives", etc.

    Not necessarily. You could have a static front page. Or have a posts page template with a custom query that limits what is (or isn't) shown on that page.

  11. Mugsy
    Member
    Posted 1 year ago #

    Esmi,

    You DO know I'm talking about a POST page when I say "one home page"?

    Not sure what good a "static" page does to do what I'm asking.

    Displaying the Items (entries) on the page isn't anything different than a filtered list with just one Comment field for all.

    Unless a suggested "solution" produces a page similar to the standard "Posts" page, you're not telling me anything I don't already know (or helps).

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You DO know I'm talking about a POST page when I say "one home page"?

    Yes. You can still have posts in a static front page if you use a custom query.

    Unless a suggested "solution" produces a page similar to the standard "Posts" page

    What's wrong with the "page of posts" approach?

  13. Mugsy
    Member
    Posted 1 year ago #

    "Page of Posts" simply filters Posts (already) displayed on your main page. You still have just one Comment field for all, and Subscribers are not notified when new Posts are added.

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You don't seem to be thinking laterally. Who said that these Posts had to be displayed on your main posts page? You can customise the queries on any page.

    You still have just one Comment field for all

    No - you have one comment field per post.

    Subscribers are not notified when new Posts are added

    That has nothing to do with any custom queries or how any given posts are displayed. Instead this relies on features such as RSS. If your page displays posts from a given category, you can provide a category-specific RSS feed, for example.

  15. Mugsy
    Member
    Posted 1 year ago #

    Since I am unfamiliar with the "Page of Posts" plugin, it may have features I couldn't glean from its description.

    I was under the impression that when I type a new Post and assign categories to it, it appears on my Main Page by Default and a copy is redisplayed on your "Page of Posts" page. I wouldn't want that. But you're saying that specific categories defined under PoP will suppress Posts from appearing on both pages at once. That would be a step in the right direction.

    Separate Comment fields are also good news (and crucial).

    Not sure about the "category-specific RSS feed". Is that part of PoP? I have not seen that feature under the standard WP interface.

    If all this works, it sounds like a do-able solution.

  16. Mugsy
    Member
    Posted 1 year ago #

    Waitaminute. What's "Page of Posts"? I thought that was a plugin, but I was thinking "Blog-in-a-Blog".

    I'm finding no such plugin. How are you creating this "Page of posts"?

  17. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  18. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Missed this bit:

    I was under the impression that when I type a new Post and assign categories to it, it appears on my Main Page by Default and a copy is redisplayed on your "Page of Posts" page.

    That assumes that you don't alter the standard query/Loop in the theme's index.php template file. However, using query_posts() again, you can exclude specific categories (for example) or opt to display just posts from one category.

    I've used this along with "page of posts" to create separate listings for posts based on any number of criteria. For example, the main posts page might just display posts in the News category. another page might display posts from the Main Courses category. A third might display featured posts (posts that have a specific custom field assigned to them) from all categories except News, etc etc.

    Once you get into custom queries, the possibilities are (almost) endless. Have a look at http://codex.wordpress.org/Function_Reference/WP_Query for all of the possible parameters that you can also use with query_posts().

  19. Mugsy
    Member
    Posted 1 year ago #

    Ah, back to the hand-recoding of WP.

    As I noted, I was hoping for a simpler solution (and one that I might not have to redo after every update.)

  20. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    There might be some plugins that can help you to achieve the same end but, in my experience, they can fail if the author doesn't update them regularly to keep up with core updates. I've ended up sorting out quite a few sites recently because of these kinds of issues. But if you do want to try the plugin route, something like http://wordpress.org/extend/plugins/query-wrangler/ might help.

    one that I might not have to redo after every update

    Not sure why you'd need to re-do any custom queries. Once they are in place, they can normally be left alone to work quite happily. The only proviso here would be if you are customising the current default theme - which would be a big no-no. In fact, with any downloaded theme, I'd suggest using a child theme as a way of keeping your customisations safe whilst still allowing you to update the parent theme without any worries.

  21. Mugsy
    Member
    Posted 1 year ago #

    If I modify any WP PHP file by hand, if that file is altered in the next update, I would have to edit the page all over again.

    "Child Themes" sound interesting, but once again, sounds like far more work than I'm prepared to do at this time (I'm considering a Theme overhaul in January and might tackle comprehensive Theme modifications/additions at that time.

    I'll look into "Query Wrangler". Hopefully, the kind of functionality I'm looking for will be built into WP 4.0.

  22. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    If I modify any WP PHP file by hand, if that file is altered in the next update, I would have to edit the page all over again.

    A core WordPress update will not touch your theme files. The only way they can be changed is if you update/over-write the theme.

  23. Mugsy
    Member
    Posted 1 year ago #

    How do you call "pageofposts.php" without altering core files?

  24. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    The entire code is within a custom page template file in your theme. drop the code at http://pastebin.com/ueb3pDqd into a new template file in a simple child them of Twenty Eleven and apply it to a static Page.

    You can download a pre-made Twenty Eleven child theme from here if you need it.

Topic Closed

This topic has been closed to new replies.

About this Topic