Auto Filled Custom Menus for Custom Post Types?

I’m not quite clear on what you’re trying to do, but I’ll just take a shot in the dark. Try messing around with custom fields. You could have a custom field with a boolean value. Then in your template, you would check to see if the post has that value. So if that value returns … Read more

Query Posts to fetch Posts with Unique Tag

<?php $arg = array(‘cat’ => ‘1’,’showposts’ => 10,’offset’ => 0); query_posts($arg); if (have_posts()) : while (have_posts()) : the_post(); ?> <a class=”post-link” title=”<?php the_title(); ?>” href=”https://wordpress.stackexchange.com/questions/55868/<?php the_permalink(); ?>”><?php the_title(); ?></a> <?php if (!$used_tags) $used_tags = array(); $posttags = get_the_tags(); if ($posttags) { foreach ($posttags as $tag) { if ( !in_array($tag->term_id, $used_tags) ) { array_push($used_tags, $tag->term_id); echo … Read more

WordPress & PHP sessions

It is relatively simple. I’ve giving you a few steps. User visits your site and hit ‘Add to basket’ on an event. You need to send this data to server (as you wanted to store in php session). you can submit a form (for simplicity) either in synchronously or asynchronously (ajax). You need to submit … Read more