ASJInc
Forum Replies Created
-
Forum: Plugins
In reply to: [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Generate XMLCan anyone explain to me how to generate the XML via PHP before actually needing it? That way it is generated when I need to call on it?
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Reload Code for Global GalleryI got past the errors, but I’m still having a very hard time getting the various scripts I first mention loaded.
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Reload Code for Global GalleryI’ve enabled the Debug mode and I’m getting errors:
When I click on a link:
ERROR:
There was an error with click_code.
Error description: AAPL_click_code is not definedWhen the page is trying to load:
ERROR:
There was an error with data_code.
Error description: AAPL_data_code is not definedWhile the page is trying to load:
ERROR:
There was an error with reload_code.
Error description: AAPL_reload_code is not definedWhat is the issue?
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Reload SmoothDivScrollAny suggestions or guidance?
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_QueryI got it! Thank you so much.
You were correct. It turns out that it was not pulling the right category and the one it had did not have the custom field. I missed your recommendation above of adding in the “key” into the query and that fixed the issue, in addition to these other revisions.
Thanks again!
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_QueryAlright, I was able to get it to pull the ID, just not in this line:
<?php echo get_post_meta( $post->ID, ‘top_slider’, true) ?>
Here is what I have at this point:
<?php global $post; // The Query $topcat = get_categories('parent=26&hide_empty'); $mycat = $topcat[0]->cat_ID; $the_query = new WP_Query('cat='.$mycat); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <a>" rel="bookmark"> <?php echo $post->ID; ?> <img src="<?php echo get_post_meta( $post->ID, 'top_slider', true) ?>" alt="<?php the_title() ?>" /> </a> <?php endwhile; // Reset Post Data wp_reset_postdata(); ?>
Any help to get to the next step would be great.
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_QueryI did tried these two and neither of them would work:
<?php echo $post->ID; ?>
<?php echo $the_query->post->ID; ?>
Why would it not work?
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_Querykeesiemeijer, I will give that a shot, but I think I’ve already tried that as well.
Any other guidance would be great.
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_QueryUnfortunately, I know that the custom field WAS working. It was working a few days ago. We updated a plugin which conflicted with the other way we had it coded and this was the alternative. For some reason the post ID just won’t pull.
Forum: Fixing WordPress
In reply to: Issues getting post id in WP_Querybump… any suggestions?
Forum: Fixing WordPress
In reply to: If there is only one post in a category, redirect to that post.Thank you so very much Joseph! It worked like a charm. I must have messed it up the first time I tried your method.
Thanks!!!
Forum: Fixing WordPress
In reply to: If there is only one post in a category, redirect to that post.To further clarify…
If I remove the Parent category as a cat for each post the script above works. Unfortunately, because then the Parent category doesn’t have any posts directly it follows to the first post of the child categories.
Perhaps someone could help me with the logic to tell this to list out the posts of the child categories if the category has “0” (such as the parent)?
Forum: Fixing WordPress
In reply to: If there is only one post in a category, redirect to that post.I appreciate the quick reply. Unfortunately it didn’t work and gives similar results to what I’m currently getting. Let me try to explain further.
I have a parent category and some sub categories.
Parent
– child 1
– post 1
– child 2
– post 2
– child 3
– post 3
– child 4
– post 4Each post has the category set as both the child category and the parent category so if I click on the Parent Category it will choose all of the articles in the child categories below it. What I need to do though is if I click on one of child categories it will forward to the post itself.
I hope that helps to clarify.
Forum: Fixing WordPress
In reply to: WP crash my server when i postWhat type of server are you running? I recently dealt with a similar issue. It turned out, in my case, that a security feature (mod_security) on my server would be triggered almost every time I would post, locking my IP out.
If you’re on shared hosting, you can often times call the managers and have them white list the rules.
Forum: Fixing WordPress
In reply to: Help with pulling category and sub-categoriesAny chance there is a plugin?