Forums

Including Posts in Pages (27 posts)

  1. d4dsign
    Member
    Posted 10 months ago #

    Hi,
    According to WordPress, you can only post on a page once. Is there a way (plugin possibly?) that I can blog on a page, not just HOME but on other pages that I have created????
    Thank you for any help!

  2. vtxyzzy
    Member
    Posted 10 months ago #

    Not sure exactly what you want to do, but you can create a template to use on a Page and retrieve Posts in the template.

    Please explain more.

  3. d4dsign
    Member
    Posted 10 months ago #

    Sorry for the confusion. Let me restate what I tried to ask. lol. I know that on my wordpress home page, I can post multiple times and multiple things. However, if I create another page (like FASHION), I can only post once and only edit that single post. I was wondering if there is a plugin that could help me make my FASHION page just like my home page????
    Thank you!

  4. vtxyzzy
    Member
    Posted 10 months ago #

    I am still not sure if you want the same posts on your Fashion page as on the Home page.

    If you do, you can do that with a template for the page. Make a copy of the index.php file and name it fashion.php. Add these lines to the front of the file:

    <?php
    /*
    Template Name: Fashion Page
    */
    ?>

    Now, create a blank Page with whatever title you want and assign it the template 'Fashion Page'.

    That should show posts on your Fashion page exactly like the Home page.

    If you want different posts, you will need a different approach.

  5. d4dsign
    Member
    Posted 10 months ago #

    The second option is correct. I do not want the posts on my FASHION page to also be on my HOME page. Do you know about the "different approach" you talked about??? Thank you!!!

  6. govpatel
    Member
    Posted 10 months ago #

    You will have to create custom post type I have article on my website custom-post-types-wordpress-theme

  7. vtxyzzy
    Member
    Posted 10 months ago #

    There are several ways to show Posts on a Page.

    One way is to use Categories. You would create a Fashion category and assign that to the posts to show. Then, you show that category on your Fashion page and exclude that category from your Home page.

    Exactly how you do that depends on your theme and how your menus are made. It may be easiest to use a couple of plugins.

    The Page Links To plugin will let you assign a category to a page.

    The Simply Exclude plugin will let you exclude categories from the Front (Home) page.

  8. vtxyzzy
    Member
    Posted 10 months ago #

    I did not recommend Custom Post types because they are not automatically included in searches. So, if you have a Search option on the site, none of them will be found.

    Adding them is fairly simple, but you do have to make a change to the code in your theme.

  9. d4dsign
    Member
    Posted 10 months ago #

    thank you so much govpatel and vtxyzzy! i'll try both of your options and tell you if they work 4 my site. thank you again!

  10. d4dsign
    Member
    Posted 10 months ago #

    vtxyzzy, i found your option easier to use for my site. i have the 3.2.1 version of wordpress (the latest) and my theme is called "twenty ten 1.2". i have downloaded both plugins, could you walk me through the steps of how to get to the final outcome of what i want? thank you!

  11. vtxyzzy
    Member
    Posted 10 months ago #

    I think this includes everything:

    • Activate both plugins
    • Create a new Fashion Category under Admin->Posts->Categories
    • Hover over the Fashion Category name and note the tag_ID in the status bar at the bottom of the screen. For me it was 96
    • Go to Admin->Simply Exclude->Exclude Categories
    • Select the Exclude radio button for 'Visibility on front/main page'
    • Click the checkbox next to Front for the Fashion category in the list lower on the page.
    • Click 'Save Changes'
    • Create a new blank Page titled Fashion
    • Scroll to the bottom to the box labeled 'Point to this URL'
    • Enter 'http://yoursite.com/fashion/?cat=96 (assuming you use pretty permalinks)
    • Publish the page

    Now add the Fashion category to some Posts and check the results.

  12. d4dsign
    Member
    Posted 10 months ago #

    Ok, so I did all the steps. However, the only thing that worked was excluding the post on fashion from the HOME page (but that's still great for a start!). My ID number for the category was 9. my regular permalink for my fashion page was: 'http://www.mysite.com/fashion' so i put 'http://www.mysite.com/fashion/?cat=9' for the "Point to this URL" part. i published, but when i went to my fashion page, it was still blank :( the post i put was only available when i clicked on my categories widget and chose the fashion category. is there something wrong with the URL i used? is it possible that i have the post appear by just clicking on the fashion page, and not having to click on the fashion category to get to the posts?
    thank you again so so so much! i really appreciate all of your help!

  13. vtxyzzy
    Member
    Posted 10 months ago #

    What you did sounds correct. Did you clear your browser's cache? If you are using a caching plugin, did you clear the page cache?

    You said you 'went to my fashion page'. How did you get there?

    Also, what appears in the address bar at the top of the screen when you click on the 'Fashion' menu item?

  14. d4dsign
    Member
    Posted 10 months ago #

    I just cleared by browser's cache and I am not using a caching plugin. I got to my fashion page just like any other viewer would. Went to http://www.mysite.com then just clicked on my fashion page. When I just click on my fashion page, the address bar says: 'http://www.mysite.com/fashion' and when I click on my fashion category, the address bar says: 'http://www.mysite.com/category/fashion'.

  15. vtxyzzy
    Member
    Posted 10 months ago #

    So, put 'http://www.mysite.com/category/fashion' in the URL for Page Links To.

  16. d4dsign
    Member
    Posted 10 months ago #

    so i did that. but then the post on fashion only appears when i click on the categories widget and choose fashion. i want the post to appear when people just go to the fashion page, and not have them have to choose from the categories widget...

  17. vtxyzzy
    Member
    Posted 10 months ago #

    Does the correct link show up in the address bar when you click on the Fashion menu item?

  18. d4dsign
    Member
    Posted 10 months ago #

    i'm not sure what you mean by "fashion menu item" but i'm guessing you mean when i click on my fashion page. when i do click on that, the link says 'http://www.mysite.com/fashion' in the address bar (and the page doesn't show my fashion post). should i possibly change the url 2 'http://www.mysite.com/category/fashion' so it immediately takes me to the fashion category posts w/out the hassle??? or is there a different way? b/c i'd like the fashion page to JUST have the url of 'http://www.mysite.com/fashion', and not the '/category/fashion' option.

  19. vtxyzzy
    Member
    Posted 10 months ago #

    By 'fashion menu item', I mean the word Fashion in a menu where you have added the Fashion Page to the menu.

    Please explain exactly what you mean by 'click on my fashion page.'.

    Once this is set up correctly, just clicking on the fashion menu item will take you to the Fashion category and show 'http://mysite.com/category/fashion' in the address bar.

    If you really want the URL to say just 'http://mysite.com/fashion', then you will need to create a template and assign it to the Fashion Page.

  20. vtxyzzy
    Member
    Posted 10 months ago #

    Just another thought - Are you using the WP Menus under Admin->Appearance to create your menu?

    If so, you do not need a Fashion Page. Just use the Custom Link box to create a fashion menu item. Put 'http://mysite.com/category/fashion' in the URL box and 'Fashion' in the Label box and add it to your menu.

  21. d4dsign
    Member
    Posted 10 months ago #

    I FINALLY GOT IT TO WORK!!!! I didn't even know about the menu option before you mentioned it! THANK YOU SOOOOOO MUCH!!!!! Everything is working now! I really appreciate your help! but 1 more question, you said in your previous comment that i need to create a template...how do i do that? (so my page only says 'http://mysite.com/fashion')

  22. d4dsign
    Member
    Posted 10 months ago #

    i also have a "follow us on twitter" widget. it's just from the twitter site (it's not a wordpress plugin or anything) and it looks like a rectangle with the words "follow us on twitter" inside of it...when users click on it, it takes them to my twitter page. however, it doesn't open the twitter page in a new window or tab, but quits my blog and takes me to the twitter page instead. how can i make this widget open in a new window or tab when a user clicks on it? thank you if you know anything that could help!

  23. vtxyzzy
    Member
    Posted 10 months ago #

    For the twitter link, if you can edit the HTML, add 'target="_blank" inside the <a tag like this:
    <a target="_blank" href=...

    Creating the template for TwentyTen is more than I can explain in a short reply. Here is a short outline.

    • Create a copy of index.php and name it 'fashion.php'
    • Add code to the top of fashion.php to make it a template named 'Fashion Page' (see my earlier replies)
    • Change the call to get_template part to this: get_template_part( 'loop', 'fashion' );
    • Make a copy of loop.php and name it loop-fashion.php
    • Add a call to query_posts to get the category just ahead of the if (have_posts()) call
    • Creat a new blank Page and assign it the 'Fashion Page' template
  24. d4dsign
    Member
    Posted 10 months ago #

    Thank you for the info on the twitter link! I've got that working now :) Currently working on the template, I'll tell you how it goes when I finish!

  25. d4dsign
    Member
    Posted 9 months ago #

    I'm not that familiar with wordpress (as you can probably see). Could you perhaps post the longer version of how to do what you said in your latest reply on your site? If it's not too much work for you. I understand you're probably busy with other things that don't have to do with helping me! If not, I'm not really sure how to do anything you said above! (Like make the copy of the .php files, add the codes, or the call.) I'm so sorry though for asking so many questions! But you're VERY helpful and I didn't know who else to turn to! Thanks again!

  26. d4dsign
    Member
    Posted 9 months ago #

    And also, in your post, you said a new blank page. I'm using menus so does this option still apply???

  27. vtxyzzy
    Member
    Posted 9 months ago #

    Please use this Contact Me page to continue this as it is too long/complex to complete using this forum.

Reply

You must log in to post.

About this Topic