addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

RE: [WordPress-Brisbane] Limiting List of Categories on Archives pages

From: Gal B.
Sent on: Wednesday, November 12, 2014, 4:41 PM

Yup J

 

 

From: [address removed] [mailto:[address removed]] On Behalf Of Sofia Woods
Sent: Wednesday, 12 November[masked]:36 PM
To: [address removed]
Subject: Re: [WordPress-Brisbane] Limiting List of Categories on Archives pages

 

ah okay thanks Gal!

So the CSS effectively controls what is displayed but the html for the non displayed categories is still available for search engines?

 

Warm Regards

SOFIA WOODS 

Director | Designer | Developer

Shortie Designs

p: [masked]

m: [masked]

skype: sofiawoods


 

On 12 Nov 2014, at 3:09 pm, Gal Baras <[address removed]> wrote:



Hi Sofia,

 

Just make sure you don't lose tags, author and date doing this.

 

You can also use CSS for this, which gives you responsive flexibility with the same amount of information, while giving all those categories to the blind search engines.

 

.limited-category-list {

    width: 370px; /* change to your preferences */

    white-space: nowrap; /* paragraph to one line */

    overflow:hidden; /* older browsers */

    text-overflow: ellipsis; /* will make [...] at the end */

}

 

Cheers,

Gal

 

 

From: [address removed] [mailto:[address removed]] On Behalf Of Sofia Woods
Sent: Wednesday, 12 November[masked]:50 PM
To: [address removed]
Subject: Re: [WordPress-Brisbane] Limiting List of Categories on Archives pages

 

wonderful - thanks Valerio!

 

Warm Regards

SOFIA WOODS 

Director | Designer | Developer

Shortie Designs

p: [masked]

m: [masked]

skype: sofiawoods


<image001.png>

 

On 12 Nov 2014, at 2:42 pm, Valerio Cassimatis <[address removed]> wrote:




Hi Sophia

 

You would have to unhook the genesis_post_meta action from the entry_footer hook and replace it your own, which uses a more specialised category function such as wp_list_categories() or get_categories().

 

This code should help you get started (in the function.php file is fine):

---

 

add_action('get_header', 'val_replace_meta');

function val_replace_meta() {

            if (is_category() ) {

                        remove_action( 'genesis_entry_footer', 'genesis_post_meta' );

                        add_action( 'genesis_entry_footer', 'val_custom_categories' );

            }

}

 

function val_custom_categories() {

            $args = array('number' => 3);

 

            wp_list_categories($args);

}

 

---

 

Regards

Valerio

 

On 12 November[masked]:24, Sofia Woods <[address removed]> wrote:

Hi Folks - just wondering how other people have handled archive pages and limiting the amount of additional categories that display under each post excerpt.

 

Currently we have a client who wants to assign multiple categories to posts so we’re just trying to work out how to display multiple categories in the feed so it doesn’t break the design or overwhelm.

 

Is there a way to limit the amount of categories that display under a post excerpt to say 3?

 

What we’re trying to do:

 

Have a categories page called ‘destinations’ and it will obviously list all the post excerpts  that are assigned to this. It will also display all the other  categories that it’s been assigned to e.g., ‘dining out’ ‘holidays’  ‘beach’ and so on (generally they are assigning up to about 8 different categories.

 

So how to do we just display the first 3 of additional categories under the except of the post?

 

We’re using genesis if this is any help.

 

Would love to hear your thoughts.

 

Warm Regards

SOFIA WOODS 

Director | Designer | Developer

Shortie Designs

p: [masked]

m: [masked]

skype: sofiawoods


<shortie.png>

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sofia Woods ([address removed]) from WordPress Brisbane.
To learn more about Sofia Woods, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Valerio Cassimatis ([address removed]) from WordPress Brisbane.
To learn more about Valerio Cassimatis, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sofia Woods ([address removed]) from WordPress Brisbane.
To learn more about Sofia Woods, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Gal Baras ([address removed]) from WordPress Brisbane.
To learn more about Gal Baras, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

 





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sofia Woods ([address removed]) from WordPress Brisbane.
To learn more about Sofia Woods, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

This email message originally included an attachment.

People in this
group are also in: