• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

deejuk

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 21 total)
1 2 →
  • Author
    Posts
  • May 31, 2017 at 11:36 am in reply to: Category Template Sort Order #207228
    deejuk
    Member

    Hi Brad - you're smarter than me for certain.. I need to study more


    WN6 Web Design – North West of England

    May 31, 2017 at 7:29 am in reply to: Category Template Sort Order #207216
    deejuk
    Member

    Hi ... thanks for the lead on this I have worked it out now with your help.

    I tired the following code in my category-4.php template

    add_action( 'pre_get_posts', 'generate_random_category_posts');
    function generate_random_category_posts( $query ) {
    if ( $query->is_category()) {
    $query->set( 'orderby', 'rand' );
    }
    }

    It didn't work ...

    So I put this in my functions.php

    add_action( 'pre_get_posts', 'generate_random_category_posts');
    function generate_random_category_posts( $query ) {
    if ( $query->is_category(4)) {
    $query->set( 'orderby', 'rand' );
    }
    }

    And it worked. Plus the blog area remains sorted chronologoically.

    Can't work out why it didn't work in category-4.php but at least it's working now ... really need to get my head around all of this but thank you Brad once again


    WN6 Web Design – North West of England

    May 31, 2017 at 5:24 am in reply to: Category Template Sort Order #207204
    deejuk
    Member

    Hi Brad thanks again .. sorry I'm no good at code. I'll leave it thanks for your pointers


    WN6 Web Design – North West of England

    May 31, 2017 at 3:27 am in reply to: Category Template Sort Order #207199
    deejuk
    Member

    Hi Brad thanks for that but how do I write it into the function for the category template


    WN6 Web Design – North West of England

    August 10, 2015 at 3:19 am in reply to: Page not mobile responsive #161895
    deejuk
    Member

    Hi just had a quick look and it looks like most of the content on this page is in a table. The table doesn't have the correct media queries in it to change size.

    The quickest solutions it to take the content out of the table and then it should become responsive for you.


    WN6 Web Design – North West of England

    July 14, 2015 at 2:09 am in reply to: Limit number of posts in a category template #159356
    deejuk
    Member

    Thank you for that. I have had a play with it and can't get it to work in the category temp, but it works in functions.php - so all I suppose I will leave it until I have more time to learn some more.

    Thank you all for the replies.


    WN6 Web Design – North West of England

    July 13, 2015 at 4:35 am in reply to: Limit number of posts in a category template #159248
    deejuk
    Member

    What I mean is when the above code is functions.php it limits the number of shown in cat 604

    However if I place the same code in the cat 604 template file and remove is from the functions.php the post limit goes back to default post count.


    WN6 Web Design – North West of England

    July 13, 2015 at 2:49 am in reply to: Limit number of posts in a category template #159245
    deejuk
    Member

    Hi all thanks for the replies.

    I tried adding the same bit of code into my cat template but it doesn't work, although it works in the functions.php file


    WN6 Web Design – North West of England

    July 10, 2015 at 6:37 am in reply to: Limit number of posts in a category template #159009
    deejuk
    Member

    Hi yeh it requires the code to go into functions.php I am looking for the code to site my my category-xx.php file


    WN6 Web Design – North West of England

    August 20, 2014 at 12:55 am in reply to: Exclude pages from index.php #119953
    deejuk
    Member

    Hi Anita,

    I am using a basic child theme which is ref the standard genesis theme


    WN6 Web Design – North West of England

    July 24, 2014 at 12:47 pm in reply to: Custom Post Type add filed under: category names #115735
    deejuk
    Member

    That kind of works better thank you Brad. I have the following code.

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_terms taxonomy="mytaxonomy"] [post_categories] [post_tags]';
    	return $post_meta;
    }

    This works fine for normal posts, but for custom post types I get left with an additional Filed Under: where the normal category should be. As it's not linked to normal categories it hasn't got one so obviously can't show it.

    This is what I see when I view the custom post type archive

    Filed Under: My custom taxonomy
    Filed Under:
    Tags: my post tags

    This is what I see when I view the normal post archive
    Filed Under: A regular category
    Tags: My post tags.

    Any help on this would be great .. even though it takes me a while to work out the pointers but thank you very much


    WN6 Web Design – North West of England

    July 24, 2014 at 3:56 am in reply to: Custom Post Type add filed under: category names #115668
    deejuk
    Member

    Thank you for the info. So added the following and it worked great for custom post types. It shows the CPT taxonomy under filed under, however the Category Taxonomy for regular posts is missing.

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_terms taxonomy="mytaxonomy"], [post_tags]';
    	return $post_meta;
    }

    WN6 Web Design – North West of England

    July 23, 2014 at 8:05 am in reply to: Custom Post Type add filed under: category names #115507
    deejuk
    Member

    Hi thanks for that ... where do I past the shortcode in functions.php or my a template file?


    WN6 Web Design – North West of England

    July 20, 2014 at 11:56 am in reply to: Advanced Custom Fields adding a map #115060
    deejuk
    Member

    Thank you for the feed back .. I will ask about around the ACF website.


    WN6 Web Design – North West of England

    July 20, 2014 at 8:52 am in reply to: Advanced Custom Fields adding a map #115035
    deejuk
    Member

    I haven't to be honest but they do have examples but they are for regular wordpress and don't seem to work in genesis. I was hoping someone here had had some experience.


    WN6 Web Design – North West of England

    July 20, 2014 at 5:21 am in reply to: Advanced Custom Fields adding a map #115021
    deejuk
    Member

    Just checked that if I use this it works as well a bit simpler. But the map outputs the words Array

    echo '<div class="detailbox">'.'<p>';
    echo get_field('address').'</br>';
    echo get_field('town_or_city').'</br>';
    echo get_field('map').'</br>';
    echo '</p>'.'</div>';

    If any one knows how to do this I would be really grateful.


    WN6 Web Design – North West of England

    July 18, 2014 at 6:45 am in reply to: Toolset Types #114788
    deejuk
    Member

    Thanks Kellylise, I will take a look at these ... be interesting to here other thoughts on this


    WN6 Web Design – North West of England

    July 18, 2014 at 6:12 am in reply to: How Difficult Is Gen + Dynamik? #114781
    deejuk
    Member

    Hi there. I am more of designer than a coder and use Genesis all the time, I started off using Dynamik and dropped it after a little while.

    It is a good system got a few quirks and you can mix and match CSS. I think the only reason I dropped Dynamik and started doing some code and css in just Genesis was speed, because Dynamik runs on the browser and I can't ever be bothered to set a local host I foudn it much easier to Firebug everthing and use a standard CSS editor or Text editor.

    All in all I think it's a great starting point if you want to use Genesis, you are almost certainly guaranteed a result. One thing I would add is when it comes to post types and the such like with conditions etc it can be as confusing in some ways to doing it all in code, all that said I am visual person and struggle with code stuff anyway.


    WN6 Web Design – North West of England

    October 30, 2013 at 2:32 pm in reply to: Background colour on single posts #69981
    deejuk
    Member

    Thank you for the reply .. it does work thank you.

    Shame it simply won't pick up the category styling but hey


    WN6 Web Design – North West of England

    October 30, 2013 at 12:35 pm in reply to: Background colour on single posts #69952
    deejuk
    Member

    For the record on this I am using Cobolt Dynamik to achieve this. You can set a label in Dynamik and then add CSS directly in a CSS hook. When you edit the post you can then select the label with the styling on and it applies it to just that post.

    It seems single posts don't inherit the category styling for some reason, but this is a decent work around if you either have Dynamik or know conditional hooks etc.


    WN6 Web Design – North West of England

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 21 total)
1 2 →

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble