.htaccess help to a beginner

For the syntax of the .htaccess URL redirect have a look here: https://stackoverflow.com/questions/3374696/htaccess-url-redirect Then add a GET request to the URL based on the originally entered domain, e.g. www.domain.no/property/shops -> www.domain.no/property?type=shops Details here: https://stackoverflow.com/questions/13988815/htaccess-301-redirect-issue-with-url-variables

Custom templates stopped working

So, after all, it was a wordpress bug apparently… The problem is I was registering the following year taxonomy: register_taxonomy(‘year’, array(‘project’), array( ‘hierarchical’ => true, ‘labels’ => array(‘name’ => ‘Anos’, ‘singular_name’ => ‘Ano’), ‘show_ui’ => true, ‘public’ => false )); And it seems year is a reserved word for WP’s rewriting rules, and it must … Read more

Show all images attached to posts as a gallery page?

Create page template with this code : $args = array( ‘post_type’ => ‘attachment’, ‘posts_per_page’ => -1 ); $query = new WP_Query( $args); if($query->have_posts()){ //check if found any attachment while($query->have_posts()){ //loop $query->the_post(); //you can add your code here } }else{ // if found NO posts }

how to get the title, description, pictures on the page?

Try the same thing with get_children. It will get you. Here is an sample code for you. $args = array( ‘numberposts’ => -1, ‘order’ => ‘ASC’, ‘post_mime_type’ => ‘image’, ‘post_parent’ => $post->ID, ‘post_status’ => null, ‘post_type’ => ‘attachment’, ); $attachments = get_children( $args ); if ( $attachments ) { foreach ( $attachments as $attachment ) … Read more