WordPress.org

Ready to get started?Download WordPress

Forums

WP-Creativix
portfolio-item/portfolio not showing (14 posts)

  1. ron963
    Member
    Posted 2 years ago #

    I have tried and tried but can't get it to work...
    basically when you go into a portfolio when click the title of a portfolio it should take you to the page which will have the full story and the gallery but I can't get mine to show.

    example: http://creativix.iwebix.de/portfolio-item/newest-project/

    notice the URL how the newest-project is nested under portfolio-item... on my site it doesn't display anything there.

    http://wordpress.org/extend/themes/wp-creativix/

  2. IWEBIX
    Member
    Theme Author

    Posted 2 years ago #

    Hi!

    You may have to refresh your permalinks settings :)

  3. ron963
    Member
    Posted 2 years ago #

    this is what I mean:

    http://www.snapobyte.com/photography-portfolio/

    if you click the portfolio title "Sunflower Photoshoot," the page does not show.

    permalinks setting is set to "Post name."

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - resetting your custom permalinks back to the default setting via Settings -> Permalinks.

  5. ron963
    Member
    Posted 2 years ago #

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    did this by deactivating all plugins and still have the same issue.

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    switched to twenty eleven but it doesn't have the portfolio options.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    did this but no go.

    - resetting your custom permalinks back to the default setting via Settings -> Permalinks.

    did this but no go either.

  6. ron963
    Member
    Posted 2 years ago #

    so I figured out the link to the title... basically I deleted the categories and created new ones. The title link finally works.

    But now the category links are broken. I deleted the portfolio and created a brand new one and re-linked it to the category and now I get the 404 error :(

  7. goblooge
    Member
    Posted 2 years ago #

    hi everyone i got problem here, how i got the dropdown menu ? i'm stuck there ???

    i used wordpress menu but not luck, use portofolio and nothing show up in my navigation menu (only home)...

    thank in advance

  8. ron963
    Member
    Posted 2 years ago #

    I don't think my problem has to do with the theme. I found out that both the portfolio title and category links work only when my portfolio category starts with an "A."

    If I switch to some other category say..."Wedding," only the category link works but not the portfolio title link.

  9. ron963
    Member
    Posted 2 years ago #

    I give up. I just completely removed and installed WordPress and this theme. The portfolio page only like categories with a letter "A" in front.

    For example: I had "Engagement" as a category. I changed that to "AEngagement" and it starts working perfectly.

  10. Trav3lingMan
    Member
    Posted 2 years ago #

    I appear to be having a similar problem.

    When listing portfolios, I also noticed that the 'title' link breaks when using categories. If no category is selected, then things are just fine and the portfolio page displays like it should.

    Only certain category names appear to work, and when I have one that does not simply appending an "A" to the beginning of the name corrects the problem.

    I've traced the problem down to the get_template_part('scripts/breadcrumb') under single-myportfolio.php. It seems to fail when it reaches the section for generating the portfolio link (in breadcrumb.php):

    if($terms) {
    	$link = get_term_link($terms[0]->slug, 'portfolio');
    	$name = $terms[0]->name;
    }

    I get the following error from these lines:

    Notice: Undefined offset: 0 in /Library/WebServer/Documents/xxxx/wp-content/themes/wp-creativix/scripts/breadcrumb.php on line 51
    Notice: Trying to get property of non-object in /Library/WebServer/Documents/xxxx/wp-content/themes/wp-creativix/scripts/breadcrumb.php on line 51
    Notice: Undefined offset: 0 in /Library/WebServer/Documents/xxxx/wp-content/themes/wp-creativix/scripts/breadcrumb.php on line 52
    Notice: Trying to get property of non-object in /Library/WebServer/Documents/trav3lingman/xxxx/themes/wp-creativix/scripts/breadcrumb.php on line 52

    This is far as I've managed to get, however I don't yet understand the inner workings of wordpress / this theme to debug further.

    Thanks!

  11. Trav3lingMan
    Member
    Posted 2 years ago #

    I should also note that I've tested this on several installations, including a fresh WP/theme install with the same outcome.

  12. Trav3lingMan
    Member
    Posted 2 years ago #

    After a bit more digging, I think I've come up with a solution (though not a very efficient one).

    I did a var_dump on $terms to check the object ID for each call, and it turns out that the ID is different depending on the portfolio category under which the portfolio is filed. I'm not sure why, but the function that starts with if($terms) assumes that you'll always be calling an ID of [0].

    Since I do not fully understand the full functionality of this call, I used a while loop to check for errors and increment the ID until the call returns no error:

    $index_count = 0;
    $break = 0;
    $terms = get_terms('portfolio');
    
    if($terms) {
    	while($break != 1){
    		if(is_wp_error(get_term_link($terms[$index_count]->slug, 'portfolio'))){
    			$index_count++;
    		}else{
    			$link = get_term_link($terms[$index_count]->slug, 'portfolio');
    			$name = $terms[$index_count]->name;
    			$break = 1;
    	        }
    }

    This fixes the problem, though I'm not sure it solves the root cause of the issue.

    Please let me know what the 'real' solution is.. ;)

    Thanks!

    }

  13. coastalpetrescue
    Member
    Posted 2 years ago #

    I gave up trying to make the portfolio work. I just do the "add posts" and create a gallery, then go into the HTML view and manually change it to [gallery columns="1" size="large" link="file"]. Efficient, no, but workable, yes.

  14. WMast
    Member
    Posted 1 year ago #

    Hello,

    I've got two problems with the portfolio.
    1) When you click on a header in the portfolio you end up at an empty page so there is something wrong in the navigation, which I unfortunately cannot find
    2) The text in the portfolio is sometimes longer then the space in the box for that specific project
    You can visit the portfolio at http://wendymast.nl/communicatieadvies/?page_id=136

    The explanation Trav3lingMan gave above is not really clear to me, hope anyone can help. Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic