Ryan

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Hijacking Tags Search #966002
    Ryan
    Participant

    I’m not sure how the Portfolio post type was set up either, it was a custom post type that came with the theme. I believe I found the code for it in the functions.php. I wasn’t able to find another plugin that would allow the tags to be added to the portfolios so I read through the link you shared (thanks!) and I found where the portfolio post type is being created in the functions.php. However, I have tried placing the code from that post in several areas within this code and haven’t had any luck with it adding a “tags” section to the portfolios. Could you give me some advice on where it needs to go? I know that this doesn’t have anything to do with the Events plugin at this point, but I really appreciate your help.

    Portfolio code in the functions.php:

    /* Create Portfolio post type */
    
    if (!function_exists('create_post_type')) {
    function create_post_type() {
    	register_post_type( 'portfolio_page',
    		array(
    			'labels' => array(
    				'name' => __( 'Portfolio','qode' ),
    				'singular_name' => __( 'Portfolio Item','qode' ),
    				'add_item' => __('New Portfolio Item','qode'),
                    'add_new_item' => __('Add New Portfolio Item','qode'),
                    'edit_item' => __('Edit Portfolio Item','qode')
    			),
    			'public' => true,
    			'has_archive' => true,
    			'rewrite' => array('slug' => 'portfolio_page'),
    			'menu_position' => 4,
    			'show_ui' => true,
                'supports' => array('author', 'title', 'editor', 'thumbnail', 'excerpt', 'page-attributes')
    		)
    	);
    
    	  flush_rewrite_rules();
    }
    }
    add_action( 'init', 'create_post_type' );
    
    /* Create Portfolio Categories */
    
    add_action( 'init', 'create_portfolio_taxonomies', 0 );
    if (!function_exists('create_portfolio_taxonomies')) {
    function create_portfolio_taxonomies() 
    {
       $labels = array(
        'name' => __( 'Portfolio Categories', 'taxonomy general name' ),
        'singular_name' => __( 'Portfolio Category', 'taxonomy singular name' ),
        'search_items' =>  __( 'Search Portfolio Categories','qode' ),
        'all_items' => __( 'All Portfolio Categories','qode' ),
        'parent_item' => __( 'Parent Portfolio Category','qode' ),
        'parent_item_colon' => __( 'Parent Portfolio Category:','qode' ),
        'edit_item' => __( 'Edit Portfolio Category','qode' ), 
        'update_item' => __( 'Update Portfolio Category','qode' ),
        'add_new_item' => __( 'Add New Portfolio Category','qode' ),
        'new_item_name' => __( 'New Portfolio Category Name','qode' ),
        'menu_name' => __( 'Portfolio Categories','qode' ),
      );     
    
      register_taxonomy('portfolio_category',array('portfolio_page'), array(
        'hierarchical' => true,
        'labels' => $labels,
        'show_ui' => true,
        'query_var' => true,
        'rewrite' => array( 'slug' => 'portfolio-category' ),
      ));
    
    }
    }
    in reply to: Hijacking Tags Search #965876
    Ryan
    Participant

    Alright I think we may be getting to the bottom of this!

    I just added the “Add Tags” plugin and now the tag cloud results are only being pulled from the events and regular posts. I added 3 tags to a single test portfolio post and it doesn’t show up in the results for any of them.

    So from here do I just need to try and find a different plugin that can add the tags to the portfolio post or is there a better way to solve this?

    in reply to: Hijacking Tags Search #965674
    Ryan
    Participant

    OK. I’ve completed the next step of installing the theme onto the test install. I added the tag cloud to the footer area to test it. It does seem to still be working (searching both events and posts). In the live site, the problem is occurring with the special post type of “portfolios”. Since the portfolios don’t have a tagging available on them within this theme, I used a plugin to add them to the portfolio post type. Perhaps this is the next thing to test?

    The test area url has changed slightly: http://www.beta.ncsml.org/test

    in reply to: Hijacking Tags Search #965119
    Ryan
    Participant

    I’m sorry, I haven’t had time to troubleshoot this on the fresh install. Unfortunately on the live site, the problem still hasn’t been resolved.

    I hope to get back to troubleshooting this within the next couple days. Thank you for checking in!

    in reply to: Hijacking Tags Search #961468
    Ryan
    Participant

    I set up the test environment here: http://www.ncsml.org/test/

    I added two posts and two events and the tag cloud search does appear to be working. What is the next step in this test?

    I also added some of the tags to Events on the actual site to test out if the tag cloud search was just not working altogether, or if it was just only searching the Events posts. The event I tagged did come up in the results, but no other posts did. (screenshot below)

    Event Result

    One other thing I noticed is that the tag search is also being affected on the backend. The tags are shown with the “Count” beside them, but when the count is clicked on it only brings up Events tagged not all posts with that tag.

    backend tags

    in reply to: Hijacking Tags Search #961182
    Ryan
    Participant

    I wanted to share this with you:

    https://www.dropbox.com/s/gzt13mh98nt5i5y/NCSML%20_%20Journalism%20Archives%20-%20NCSML.pdf?dl=0

    It is the output from the Query Monitor plugin, which includes a ton of debugging information. I think it might make more sense to you than it would to me. Maybe there is something in there that is pointing to the problem.

    I also wanted to make a note of something that may or may not make a difference – none of the events on the site are tagged. So, I still think the problem is that it is only searching events and displaying those results (which just happen to be no results because no events have those tags). I will do a test of this by adding some of the common tags to an event and seeing if the tag cloud then pulls up that event. I will let you know my results!

    Thanks again for your help on this!

    in reply to: Hijacking Tags Search #961134
    Ryan
    Participant

    This reply is private.

    in reply to: Hijacking Tags Search #961005
    Ryan
    Participant

    Thank you for the compliment on the site. 🙂

    I have tried deactivating all plugins and switching to TwentyFifteen. I tried each separately, and then also both at the same time. Unfortunately, in all 3 scenarios I get the same result – the tags are still not pulling up any results. (images below)

    Default theme active, tag cloud page

    No Results, default page active & plugins deactivated

    I know that doesn’t seem to get us any closer to the solution. This has me stumped!

    in reply to: Hijacking Tags Search #960879
    Ryan
    Participant

    Here is the page I am working on: http://ncsml.org/oral-histories/

    The tag cloud is nested in the accordion near the top labeled “Search by Key Words”.

    I have also set up the tag cloud on a separate page here (to make sure the accordion isn’t causing the error): http://ncsml.org/tag-cloud-test/

    When a tag is clicked, no results come up. That is because the events calendar is “hijacking” the search to only search events’ tags. It isn’t that I necessarily don’t want events coming up in the search, it is just that we are mainly using tags to sort through portfolio posts. Each tag in the tag cloud is attached to at one portfolio post and yet the search results are coming up empty because it is only searching the events.

    Hopefully I am being clear. Let me know if I can clarify any more or if you need any other info from me.

    Thank you for your help!

    in reply to: Hijacking Tags Search #960836
    Ryan
    Participant

    I was really hoping this would do the trick, but it seems even after pasting this code in the problem is still not fixed. Is there any other solution to this problem?

    in reply to: Hijacking Tags Search #960801
    Ryan
    Participant

    Thanks! And just to be sure, does this code get pasted into the functions.php or somewhere else?

    in reply to: Website slow & completely using memory #958151
    Ryan
    Participant

    I hope I am not intruding, but I have been watching this thread recently as we seem to be having the exact same issue with our site. I thought it might be important to make the devs aware that this isn’t an isolated incident.

    We have the identical hosting situation mentioned above (GoDaddy on Linux cPanel hosting. 1024MB Memory, 125 entry processes, 100 processes, I/O 1MB, 100GB Disk) and have already increased the Memory once, thinking that was the problem. We have reached the point of considering moving the site to a new host. It seems silly to take that step if the issue actually lies within the reoccurring events feature of this plugin. We only have a total of 50 events on our site at the moment and not all are reoccurring.

Viewing 12 posts - 1 through 12 (of 12 total)