Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Future Proof WordPress Custom Template based on category ids.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31252
    shackep
    Member

    A few months ago I created a system that relies heavily on WordPress’s cat id. http://llcom.net/magazine/ Now we are transitioning the site into a new WordPress multisite. We are finding that when using wordpress’s import system cat ids get scrambled. What would be the smartest way to rebuild so this won’t ever happen again.

    
    $issue= get_post_meta($post->ID, 'issue_num', true);
    $args= array(
    'category__and' => array(16,$issue),
    'posts_per_page'=>-1,
    );
    query_posts($args);
    ?>

    The issue_num is based on a cat id that is manually added as a custom field to a single page that represents each issue.

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.