Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter isakengstrom

    (@isakengstrom)

    Hi @prashantvatsh,

    Late answer, but thanks for the guidance!

    I almost get what I want with that code, but I would want to get only the sub categories from one particular parent category. Any idea about how I can modify the code to achieve that?

    / Isak

    Thread Starter isakengstrom

    (@isakengstrom)

    Hi @bcworkz,

    This is a very late answer but your solution seems to work and I want to say thousand thanks for that! And thanks for your education as well! 😉

    / Isak

    Thread Starter isakengstrom

    (@isakengstrom)

    Thanks for your answer @wdsupport!

    So much I understand. But what I don’t understand is what the number of ‘users’ indicates. If you combine the number of ‘new visitors’ and ‘returning visitors’ you get the number of ‘sessions’, not ‘users’. So what does the number of ‘users’ really indicates?

    / Isak

    Thread Starter isakengstrom

    (@isakengstrom)

    Well, I got this solution from a website that I can’t find right now, so I don’t really know how it all works.

    So, the posts on the page is sorted into different issues and what I try to achieve is to display the posts from just one issue and sort them from the oldest to the newest (on the contrary to the “main feed” that is sorted from the newest to the oldest). I can get the site to display the right posts, but not to sort them in the right way.

    The solution above displays all the posts from all the issues when I click on an issue, although they are sorted in the right way. Note that I’m not using that solution right now.

    Here is the page with all the issues:
    http://www.insidan.net/nummer/

    And here is a page with the posts from just one issue (but sorted in the wrong way):
    http://www.insidan.net/nummer/mars-2017/

    Hi,

    I can’t fint the setting “Convert CMYK to RGB”. Where can I find it?

    Thread Starter isakengstrom

    (@isakengstrom)

    Any answer to this question?

    Thread Starter isakengstrom

    (@isakengstrom)

    If I want to grab the value of an custom taxonomy and display it on the website. How can I do that?

    The case: The website now displays the date when the article was published, but I want to change that so that the issue from which the article is taken displays instead.

    The Custom Taxonomy looks lite this:

    // Register Custom Taxonomy
    function nummer() {
    
    	$labels = array(
    		'name'                       => _x( 'Nummer', 'Taxonomy General Name', 'text_domain' ),
    		'singular_name'              => _x( 'Nummer', 'Taxonomy Singular Name', 'text_domain' ),
    		'menu_name'                  => __( 'Nummer', 'text_domain' ),
    		'all_items'                  => __( 'Alla', 'text_domain' ),
    		'parent_item'                => __( 'Överordnad kategori', 'text_domain' ),
    		'parent_item_colon'          => __( 'Överordnad kategori:', 'text_domain' ),
    		'new_item_name'              => __( 'Nytt namn på nummer', 'text_domain' ),
    		'add_new_item'               => __( 'Lägg till nytt nummer', 'text_domain' ),
    		'edit_item'                  => __( 'Redigera nummer', 'text_domain' ),
    		'update_item'                => __( 'Uppdatera nummer', 'text_domain' ),
    		'view_item'                  => __( 'Titta på nummer', 'text_domain' ),
    		'separate_items_with_commas' => __( 'Separera nummer med komman', 'text_domain' ),
    		'add_or_remove_items'        => __( 'Lägg till eller ta bort nummer', 'text_domain' ),
    		'choose_from_most_used'      => __( 'Välj bland de mest använda', 'text_domain' ),
    		'popular_items'              => __( 'Populära nummer', 'text_domain' ),
    		'search_items'               => __( 'Sök nummer', 'text_domain' ),
    		'not_found'                  => __( 'Hittades inte', 'text_domain' ),
    		'no_terms'                   => __( 'Inga nummer', 'text_domain' ),
    		'items_list'                 => __( 'Nummerlista', 'text_domain' ),
    		'items_list_navigation'      => __( 'Nummerlista navigering', 'text_domain' ),
    	);
    	$args = array(
    		'labels'                     => $labels,
    		'hierarchical'               => true,
    		'public'                     => true,
    		'show_ui'                    => true,
    		'show_admin_column'          => true,
    		'show_in_nav_menus'          => true,
    		'show_tagcloud'              => false,
    	);
    	register_taxonomy( 'nummer', array( 'post' ), $args );
    
    }
    add_action( 'init', 'nummer', 0 );
    • This reply was modified 7 years, 3 months ago by isakengstrom.
    • This reply was modified 7 years, 3 months ago by isakengstrom.

    Before I added the code to functions.php the layout theme showed all images in the same aspect ratio, regardless of what the original aspect ratio of the image was (like the three other pictures in the image I linked to in my previous post). Now that I’ve added the code på functions.php the theme seems to show the pictures in the original aspect ratio.

    I’ve tried to regenerate my thumbnails, but then all pictures gets their original aspect ratios… The page also seems to be very heavy to load, just like the pictures is all shown in their original size but fitted into the space the theme gives theme.

    Hi,

    This solution solves the HTTP-issue for me, but instead it causes a problem with the thumbnails on my site.
    See this image, the thumbnail of the post “Gemenskap genom tid och rum” is uploaded after I added the code to functions.php:
    https://www.dropbox.com/s/xsducxrosckh8jh/thumbnails.png?dl=0

    Any ideas of how to solve this?

    / Isak

    Thread Starter isakengstrom

    (@isakengstrom)

    That did it! Big thanks!

    You just solved my problem!! 😀 Big thanks!

Viewing 11 replies - 1 through 11 (of 11 total)