Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

davidmaxwaterman on "projects disappeared from all page"

$
0
0

Hi,

Our design department have tasked me with making some changes to their wordpress site - I've not touched it before, but am somewhat familiar with the technologies involved. We're using wp 3.9.1 with the Divi theme and the searchandfilter plugin.

The problem is that I've added some custom taxonomies and now all the projects have disappeared from the 'fullwidth portfolio' part of the 'all' page. I'm hoping someone can tell me what I need to fix it.

I am using the Divi theme and added the custom taxonomies to :

wordpress/wp-content/themes/Divi/functions.php
function et_pb_register_posttypes

I pretty much copied the existing code there for the Categories, but changed it to 'Collections' and also duplicated it for the other taxonomies I want. This made the relevant bits show up in the admin panel for adding/editing projects, and I've had people create some projects and assign some of the taxonomies (I read somewhere that terms need to be assigned before they become active, or something - though I'm probably a bit confused there).

Unfortunately, all the projects then disappeared (they were previously listed when nothing was selected in searchandfilter).

I have noticed that get_categories() on line 2748 of et_pagebuild/et_pagebuild.php returns nothing useful - an array with one 'uncategorized' element in it, while if I actually specify 'taxonomy=project_collection' then I do get the corresponding projects returned.

I also notice that, in the page builder for the 'all' page, there's a 'Fullwidth Portfolio Module Settings' panel with a place to enter 'Include Categories' which has two checkboxes that have no text next to them - that seems to suggest I've not 'done enough' somehow. I would expect one for each of the taxonomies I've added (?) and I should include all of them.

I kind of feel like I'm 'close', but I'm confusing something...like taxonomies and terms.

Can anyone point me in the right direction?

Thanks!

Max.


Viewing all articles
Browse latest Browse all 8245

Trending Articles