Page Template Custom Options - wordpress

I have a little question. I am making a wordpress template that uses custom page templates. Now i ran into a problem. I want to create a page with a intro text and blog posts that come from a certain category. When a user creates a new page, I want them to be able to select the category from witch the posts are shown. Kinda like a drop down box with category's from where they can select the category they want. Does anyone maby knows a tutorial where I could learn how to do this ?
I mean something like this: http://imageshack.us/photo/my-images/10/naamloosea.jpg/
I already searched google but I could only find tutorials on how to make a template options page.
Thanks in advance,
Bob

You would want to create a Meta Box to save the category as a custom field entry within Pages. In here you could list the categories within a select box. You could then use this in the page template to pull in the posts from that category as you wish. I'll see if I can dig out a decent tutorial for this.
I did a quick search and found the following plugin for WordPress that may be of use... http://wordpress.org/extend/plugins/map-categories-to-pages/

Related

How to create a page like the WordPress Plugin page

I'm pretty sure this is basic but it's been a couple of weeks I'm struggling.
I'm building a video game news type of website with Wordpress and I would like the "game sheet" to work in the same way the WordPress plugin page works (here is an example: http://wordpress.org/plugins/buddypress/ )
The idea would be to have a page for each game and then this page would pull out content in each tabs to display different content:
News would be articles with the game name as a tag
Screeshots would be images from the media manager I would have tagged with the name of the game
Game review and user voting in the sidebar
etc...
Again, this seem to be a very basic taxonomy/custom post type system but I just don't know where to start and I can't find the right words to explain it to do a proper google search.
Thank you for your help.
What you need is to create a "custom post type". In other words, something like a post, but with more / different fields. I suggest you use the plugin: "custom content type manager".
After you create the custom post type you need, you will only have to create a page / post the summarizes the custom content you have built. For that you will also use the same plugin.

Category Listing Page with posts filtered to selected tag on Wordpress Blog

I'm working on a Wordpress 3.4 project. I have categories and then several tags, and also one custom taxonomy as types.
Wordpress is fantastic as far as it handles all the taxonomy page, but I'm unable to figure out how to have pages where I have categories listing page (with pagination) specifically filtered to a selected tag or custom taxonomy.
So basically I want Categories, but then again, I also need to have a categories page with all posts filtered to specific tag, and then with pagination.
I have tried to figure out how to do that, but unable to find the exact doc or help. The issue is also with the URL, as how it will be formed?
Any idea how to fix that one, or any plugin to get this things done?
I think these two codex pages will help you along your way.
http://codex.wordpress.org/Class_Reference/WP_Query
and
http://codex.wordpress.org/images/1/18/Template_Hierarchy.png
You can use WP_Query to query posts based on tags and categories/custom taxonomies and much more.
If you look at the template hierarchy you'll see you can use special template files for tags and taxonomies too. Just remember to flush your permalinks if you're not seeing these templates being used if you create one.

WordPress: Showing posts by categories/tags on the index page

Is it possible to show posts by categories/tags on the index page instead of taking the user to the tag.php and category.php pages?
For example, when the user clicks the 'Uncategorized' category, I would like all the Uncategorized posts to replace the list of posts already there on the index page.
I've been trying to find out if anyone has done this but I've had no luck. I'd really appreciate it if someone could give me a link to somewhere that tells me how to go about doing this or lets me know how to change the code to get this to work.
This can be done. I can not recall a page that has done it but I do know it would require you creating your own custom page template.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates is a good place to start learning how the page templates are created.
Some additional links
http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query
http://wordpress.org/support/topic/tag-archive-from-a-single-category-is-this-possible?replies=34

Post privacy in Wordpress

Can a post be hidden from home page, archive view, category lists etc. and viewable only if you have a direct link to it? The blog doesn't have registered readers and is open to public so that would be a mean of hiding some posts from public view without using the password protection.
I asked this question in Wordpress section and the idea there was to use conditional code so I'm asking the question here as well to get closer to the code.
If I used conditioning, would I have to input each post's ID separately to PHP file for archive, categories, search and such?
EDIT:
After reading a bit more all over, I had an idea of creating a private category and then use some kind of conditioning so that posts from that category are hidden. According to Codex, certain category can be hidden from, for example front page but I don't know if there's a way to hide it altogether except when you have a direct link.
Creating a "Private" category is a good solution. It is quite possible to hide this category altogether except via direct link. You just have to "block all the exits" with conditional code.
The default WordPress theme displays posts via the Post Loop. See http://codex.wordpress.org/The_Loop, especially the section entitled "Exclude Posts from Some Category". Just find all the places in your theme's PHP files (e.g. index.php) where this loop is used, and add the conditional code. You'd also need to filter your category list and blog archives in the side menu. Don't add filtering in single.php, otherwise the private post won't display on its own page.
You'd probably want to add a similar condition to filter search results so that private posts aren't leaked via the blog's search tool. There may be more "exits" I haven't thought of, but I'll be sure to update as I do. I'm glad to look at specific code if you so desire.
Understanding WordPress' post query and loop really opens up a world of possibilities for customization.
I found the simplest way - just use Simply Exclude Wordpress plugin. It has the option to exclude each post (or tag, for that matter) from front page, archive, search or feed. It works flawlessly. You can still view the posts by using direct links.
(Not actually an answer that includes code but a working solution nonetheless.)

Drupal: Creating a simple blog?

I'm new to Drupal and trying get my head around it. I'd like to create a simple blog where I have a page that displays blog posts and the number of comments on each posts. Once the blog title or comment number is clicked, the user is taken to the post page. Simple as that.
I'm using Views and CCK, and I was able to create the main blog page, but I have no idea how to give each post its own page which contains comments and a comment form.
I tried searching online with no luck.
Any idea how to do this?
appreciate your help
In Views, you can select one of the fields you're displaying (best bet: the Title field) and select the "Link this field to its node" option. That'll make it a link to the individual node page, which is where comments etc. live by default.
Your question is quite broad, but you will need to do the following: Create a user node and connect it to the user profile (CCK, nodeprofile and usernode), and a new content type (CCK) for the blog posts (with any custom fields you may want). And then use Views to show the blog posts and profiles of each user. (You can build a view that uses arguments to select user/blog posts and also gives nice urls.)

Resources