Portfolio Catagories

Hi,

I was hoping I could easily list out a portfolio’s categories, on each individual portfolio page. I know on some of the templates it lists the meta/catagories right under the title, but I’ve had to do some customizing and that might be effecting this.

Here is a link to a sample page
http://181.224.136.100/~assoc522/wordpress/portfolio-item/puvis-de-chavannes-mural-conservation/

So as an example it would be great to be able to list out “prints & drawings” for the above link. And then link to other prints and drawings. But automatically for every portfolio page. Some would fall under “prints and drawing” but others might fall under books, manuscripts, objects, or photographs.

Not sure if I’m making myself clear

I’ll post my login info in a secure note.

Thanks

Garet

Hello There,

Thanks for posting in! By default, the Ethos stack does not have any post meta. To be able to display it,

// Add custom portfolio meta
// =============================================================================
function custom_portfolio_meta() {
  if( x_is_portfolio() ){
    x_ethos_entry_meta();
  }
}
add_action('x_after_the_content_begin', 'custom_portfolio_meta');
// =============================================================================

We would loved to know if this has work for you. Thank you.

Hi,

Thanks for the quick response. Sadly this had no effect.
I have a feeling is has to do with the custom work that has been applied to my portfolio pages.

Any other ideas?

Thanks

Garet

Hi There,

I have checked your functions.php file within your WordPress backend editor, but I could not see any code or it does not allow to add any code.

Could you please provide us with your FTP credentials to check this issue?

Thanks!

Hi,

I posted a secure note below with username and password info.

Thanks in advance.

Garet

Hi,

Please change the code provided with this.

// Add custom portfolio meta
// =============================================================================
function custom_portfolio_meta() {
  if( x_is_portfolio_item() ){
    x_ethos_entry_meta();
  }
}
add_action('x_after_the_content_begin', 'custom_portfolio_meta');
// =============================================================================

Hope that helps.

Hi Paul,

Still the same.

I attempted to see if it was something I added to effect the desirable outcome, but to no avail. I added a new portfolio page, without using Cornerstone. I turned off the Pro header, deleted all the CSS and additional Javascript. Still no effect.

Any other ideas?

Thanks in advance for your help.

Garet

Hello There,

The post meta is not displaying because of your custom css.

.single-x-portfolio .p-meta {
    display: none;
}

I have commented it out and it is now displaying in the single portfolio items.

Please check your site now.

Wow, thank you! This is perfect.

I should have been more thorough. I thought by removing all my css I would be able to tell what was doing it. But I needed to be more selective.

Cheers

Garet

You’re welcome, Garet.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.