Jump to content


Photo
- - - - -
Resolved

Custom Post Types On Authors Archive Page

custom post type

  • Please log in to reply
5 replies to this topic

#1 jankowalski

jankowalski

    Advocate

  • Members
  • 346 posts
  • Country: Country Flag

Posted 09 November 2012 - 12:59 AM

I m trying to include custom post types on author archive page by this function

Please Login or Register to see this Hidden Content



but i get fatal error

Please Login or Register to see this Hidden Content


It used to work with earlier version of wordpress? pagelines?
How can i fix this function?
THANKS

#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 09 November 2012 - 01:02 AM

Cannot redeclare means you have the function declared twice or more.

#3 jankowalski

jankowalski

    Advocate

  • Members
  • 346 posts
  • Country: Country Flag

Posted 09 November 2012 - 01:05 AM

Thanks for quick answer. Do you mind to help me to fix this code so i can include cpt on my author page?
Actually this function is taken from here and should work!

Please Login or Register to see this Hidden Content



#4 jankowalski

jankowalski

    Advocate

  • Members
  • 346 posts
  • Country: Country Flag

Posted 09 November 2012 - 01:10 AM

OK, have just found a working solution and i post it for the comunity

Please Login or Register to see this Hidden Content


Hope it make sense.

#5 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 November 2012 - 01:45 AM

Thanks for posting the resolution :)

#6 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 November 2012 - 01:45 AM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved, custom post type