Forum Replies Created

Viewing 15 replies - 541 through 555 (of 564 total)
  • Thread Starter John Huebner

    (@hube2)

    Sorry, should have come back here when I figured it out. I think it was something to do with the has_archive. At this point I don’t remember to be honest, but the site is working so I must have figured it out. 😛

    Thread Starter John Huebner

    (@hube2)

    Well, that sounds like a pain. Fields should be available in the admin just like the front end. I’m creating a custom post type with custom fields. Why wouldn’t I want to customize the rest of the admin to show relevant field columns.

    Thanks anyway

    Thread Starter John Huebner

    (@hube2)

    What I was looking for is a way to select another page, similar to what the WP function shown here does, http://codex.wordpress.org/Function_Reference/wp_dropdown_pages

    Thread Starter John Huebner

    (@hube2)

    What the client currently has is about 10 to 12 sites on separate domains and they’re products on each domain separately. It appears that it is something like them that is a supplier with many distributors. The distributors can decide what products they carry and they are hosted at the distributors domain name. Having a single site is not an option for them.

    At this point, unless I find an easier way, it looks like I will need to build the database connections and do all the queries myself. I can do it, but quite honestly the DB design on WP and what you need to go through to dig the data out of it without using WP_Query is not very simple. I was just hoping there was a way to do this that would be less time consuming.

    Seriously, I could probably built a custom CMS for this in less time than it would take using WP. But the client is insistent on using WP for some reason.

    Thread Starter John Huebner

    (@hube2)

    So, this type of field is not available. Until now I have been using the Advanced Custom Fields plugin. We do a lot of sites that eventually end up being multilingual and to make the switch to using WPML easier in the future we are trying to make sure we use only compatible plugins, that is why we’ve switched to this one.

    However, the other plugin provides a lot more flexibility when it comes to the types of fields that can be created. Are there any plan to add additional field types to this plugin?

    Looks like I’ll be going back to that one. More likely using both as you plugin does have some features I can use most of the time. But without all of the field types it is not a complete solution for me right now.

    Thread Starter John Huebner

    (@hube2)

    So this would not be a multi-site settup. So I’m in the wrong area. Any pointers on which WP forum might get me the best results.

    Better option, use WordPress SEO by Yoast http://wordpress.org/extend/plugins/wordpress-seo/. It includes SEO for categories, tags, custom post types, custom taxonomies.

    Sorry, should have added this comment sooner but I forgot about this thread until dikoro posted and I got an email from it.

    Glad I could help. I like the way this plugin works because it allows editors to use built in WP features rather than needing to use short tags or some other more obtuse way to create a Gallery. Hopefully it has not been abandoned.

    Sorry, sometimes I’m just guessing 🙂 What I did was I looked into the function in the core that show the gallery.

    I just looked again and I may coppied what they were doing wrong. It seemed to work for me, but maybe the images in the galleries my client has are in the same order by a coincidence.

    Anyway, try changing the cold above to $args[‘orderby’] = ‘post__in’;

    if ($post__in != '') {
        $args['orderby'] = 'post__in';
        $args['post__in'] = explode(',', $post__in);
      }

    Sorry, there is a typo in the code above. try this:

    if ($post__in != '') {
    		$args['orderby'] = $post__in;
        $args['post__in'] = explode(',', $post__in);
      }

    “order_by” should be “orderby”

    See my corrective action for the problem I was having here: http://wordpress.org/support/topic/adding-photos-not-in-gallery

    To make the order be as they are supposed to be, change the code in the second part to this

    if ($post__in != '') {
    		$args['order_by'] = $post__in;
        $args['post__in'] = explode(',', $post__in);
      }

    This corrected the situation for me.

    Of course, changing the coding will mean you can’t update this plugin without redoing any changes. Like I said in the other thread, hopefully if this plugin is every updated it will include these changes/fixes.

    Thread Starter John Huebner

    (@hube2)

    I found the problem. The yas_gallery function fails to take into consideration that there may be other attachment images other that the gallery or the featured image.

    When the function is called, one of the attributes that is passed in is a list of post id’s that are included in the gallery. This is a complete list of what images are supposed to be included.

    So, near the top of the script I added the following, before the “extract” statement:

    if (!empty($atts['ids'])) {
        $post__in =  $atts['ids'];
      }

    Then, after the setting of $args, later in the function I added this:

    if ($post__in != '') {
        $args['post__in'] = explode(',', $post__in);
      }

    I also commented out the exclude and post_status lines in the original $args array as they are not needed.

    This fixed the problem. You can find this function at line 33 of the plugin.

    I have also changed the version number of my copy to 100 to prevent it from getting updated. It seems it has been a while since anything was done with this, so maybe it will not be updated. But, hopefully if it is this information will be included.

    Thread Starter John Huebner

    (@hube2)

    Never mind, after reading about the options I found the Silent Remote Sending option.

    Thread Starter John Huebner

    (@hube2)

    it appears I have figured it out. I was not using have_posts() and the_post() to loop through the posts from the custom post type and was accessing the data directly. I altered the loop to use these and now wp_reset_query() works as expected

    I believe I ran into an issue with this as well where old data remnants caused an issue. I have been testing this plugin out to see what it does and I have been adding and deleting post types.

    Suddenly all my custom post types were not appearing in the WP Menu. The only way I could clear up the problem was to delete all of the data and reinstall WP and start from scratch.

    I think the main error that started causing my problems was a space in the custom post name of one of the custom post types I tested. It was after adding that one that all my troubles started. However, I think that if the remnants of this were not laying around in the database, I would not have needed to purge the DB and restart.

    Hope the info helps in some way, but I am in complete agreement that when the custom post type is deleted that all related data should be purged, perhaps with an option to apply any existing posts in a post type to another post type?

Viewing 15 replies - 541 through 555 (of 564 total)