How to Organize my Photo Albums?

General idea based on the use of regular Posts, not Custom Post Types (which is what the plugin CPT-UI is about): one parent Category -Photos under it, the needed sub-categories -Personal, Professional, etc one post corresponds to one Album -Vacations 2012, News Coverage, etc upload all images of the Album into the post, put titles, … Read more

How to hide a piece of code from a wordpress web page?

Without looking too closely, my best guess is that the footer text: ©2012 Америк дахь Монгол Оюутны Холбоо is being processed through the the_content filter… something like: echo apply_filters(‘the_content’, $some_text); Typically those social plugins add themselves automatically by hooking into the_content filter.

How can I display these posts in ascending order?

Keep in mind that query_posts is best avoided as it has negative effects on the main loop. A better approach would be a new instance of WP_Query or changing the query arguments for the main loop. To get the order you want, try adding the following to your args: array( ‘posts_per_page’ => ‘-1’, ‘post_type’ => … Read more

Fix incorrect related posts code snippet

Your first problem: Try to write down what you want to do: You do not want to print posts that are already printed. So you have to remember what posts are already printed. In PHP normally an array is a good solution to remember things that are already done. Let’s add an array: $printed_posts = … Read more