Viewing 15 replies - 1 through 15 (of 20 total)
  • you can create static link pointing to category WWDC then you can update the permalink for your category.

    Thread Starter themacfeed

    (@themacfeed)

    How?

    What is the correct way to do this?

    Hi,

    There have been a number of posts lately about this topic.

    What probably needs to be done is for you to associate page ids with category ids. In the beginning part of the example there is the code that looks like

    if (is_page(’21’) ) {
    $cat = array(12);
    } elseif ( is_page(’16’) ) {
    $cat = array(32);
    } elseif ( is_page(’28’) ) {
    $cat = array(17);
    } else {
    $cat = ”;
    }

    In the example, page id 21 is associated with category id 12, page 16 is with category 32 and 28 is with category 17….if the page id of the current page is not any of those, all the posts are displayed. If the page id is one of the above, then only the posts with the associated category are displayed.

    In your case the WWDC category is 11 but you have not defined/published a page to contain these posts….unless it’s one of the member pages.

    Hope that helps.

    Thread Starter themacfeed

    (@themacfeed)

    So how do I do it for my posts?
    And yes Im getting there ??

    How?

    What is the correct way to do this?

    <a href="https://www.themacfeed.com/category/WWDC">WWDC</a> | <a href="https://www.themacfeed.com/macbook">Mac Page</a>

    WWDC | Mac Page

    so you create a page called wwdc…you have to get the page id (say 21)

    when you create a post, you can assign it to a category called wwdccategory … you have to get the category id. (say 18)

    then in your page.php file you have your “page of posts” code..modify the code to read

    if (is_page(’21’) ) {
    $cat = array(18);

    } elseif ( is_page(’16’) ) {
    $cat = array(32);
    } elseif ( is_page(’28’) ) {
    $cat = array(17);
    } else {
    $cat = ”;
    }

    now, your category 18 posts will show up on page 21.

    Thread Starter themacfeed

    (@themacfeed)

    Didnt that template make it so it is easy to post on pages? BC this is meant if i didnt put that template in… There should be an easy way like it states: A Page Template that displays posts from a specific category depending on what Page is being displayed. Even on that passage with the code it didnt say we needed to edit it.. Is there a way to do it w/o editing that?

    nope, you need to edit it.

    remember, page.php is used to display any page…..so if you want to do something special on a particular page, you have to figure out what page you are on…so that’s why you need to modify the logic since every site is different. A similar technique is used if you were to want to display a different header depending on what the page is. The other way to do this is to create a custom page template for every different kind of page. Each custom page would have code unique to that page. The above way is more generalized since you have 4 or 5 different pages displaying different categories.

    Hope that helps.

    Thread Starter themacfeed

    (@themacfeed)

    How do you know what page is what #?

    Thread Starter themacfeed

    (@themacfeed)

    And how do I do this for multiple Pages? Please simple instructions, im new at messing with codes ??
    ATM im looking at the PHP document

    Thread Starter themacfeed

    (@themacfeed)

    Please I need this Fixed ASAP!!!!

    go to pages
    then edit to list all your pages,
    once you hover on a page, you can see on your status bar the number

    something like:
    https://www.nazcarpine.com/wp-admin/page.php?action=edit&post=1156

    1156 is the page number in this case.

    Thread Starter themacfeed

    (@themacfeed)

    ok and how do you do that to a category?

    Thread Starter themacfeed

    (@themacfeed)

    Anyone? Need this done fast, have many Hits and need this to be fixed asap!

    Thread Starter themacfeed

    (@themacfeed)

    like where do you see that same thing for the category??

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘How DO you use Page of Posts?? Please Help me!! Site being release very soon!!’ is closed to new replies.