This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to add masonry to my categories?

Resolved 4 replies general
10 years ago · Last reply by Andrew Misplon 10 years ago

Is there a php code I can insert into my category template to show masonry instead of the “normal” content?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 10 years, 10 months ago

    Hi Ovidiu

    Unfortunately not, the Masonry widget is only packaged in widget format at the moment. What you could do is manually create your own category pages. The Masonry widget has a field at the end called Additional, in that field you can add an argument as follows:

    cat=x
    

    Where x is the category ID you’d like to filter. You can also comma separate and add multiple ID’s To get a category ID, go to Posts > Categories and click on a category name, then view the url, the ID will be the only number in the url.

    (You can also put a minus sign in front of ID’s to exclude them.

    Hope that helps.

  2. Ovidiu 10 years, 10 months ago

    Thanks, I’ve sorted this out already by creating my own category.php template and inserting an extra sidebar there so I can place your masonry widget there into the content, example: http://pacura.ru/category/cityscapes/

  3. Ovidiu 10 years, 10 months ago

    Hi Andrew,

    I tried replying to the thread but my reply disappeared. Have I been spammed?
    Here is my reply:

    Thanks, I've sorted this out already by creating my own category.php template and inserting an extra sidebar there so I can place your masonry widget there into the content, example:
    http://pacura.ru/category/cityscapes/

    cheers
    Ovi

  4. Andrew Misplon Staff 10 years, 10 months ago

    Hi Ovidiu

    Apologies. We’ve been getting a few false positives. Greg has sorted this problem out for your account.

    Super, glad to hear you made progress. Thanks for the update.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread