jaw23
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: trouble changing permalink structureI did try using the slash after it but it didn’t work either. Seems to redirect fine if your blog is not in a subfolder.
Should be an easier way to make this happen. I really don’t have too many posts on the blog yet.
And you’re right, mod_rewrite programming is definitely not my thing.
Any other suggestions out there?
Forum: Plugins
In reply to: [Plugin: Facebook Share (New) Button] Shared content is incorrectI have the same problem. Link is correct but content is being pulled from the sidebar instead of the blog post.
I have been searching for a month now to find a solution.
Here’s all I have found so far:
1) Be sure you have the most up-to-date plug-in version.2) Try adding <?php wp_reset_query(); ?> before the comments template on the single.php page.
It didn’t help me but maybe it will help you!
Still hoping/looking for a solution…Forum: Fixing WordPress
In reply to: share plug in pulling wrong testplease help. I am at a total loss as to where to start.
Forum: Plugins
In reply to: plug in pulls wrong textbump.
anyone??
Forum: Fixing WordPress
In reply to: category elseif statementphew is right.
I learned a tremendous amount.
I’m keeping our conversation for future reference.thanks for being out there.
Forum: Fixing WordPress
In reply to: category elseif statementI fixed it.
I corrected the index.php to have the blog header (not the coding from the single.php page) and I had a code wrong in the query.
my last comment stands.
you are, clearly, a genius.
and I am incredibly grateful.Forum: Fixing WordPress
In reply to: category elseif statementnever mind, I fixed it.
but now…the blog page is pulling the wrong category??
Forum: Fixing WordPress
In reply to: category elseif statementIT WORKED!!
you are brilliant! and a true saint for sticking with me this long.only one little glitch.
have a look at the header on this page – it has double headers.
https://mindfullivingnj.com/archives/605also, could you please explain the last line?
does it read – if not in category 4 and not category 3 and not category 26 and not in category 22 then use Mindful Girl Blog?
in which case I just need to add the few that are missing?Forum: Fixing WordPress
In reply to: category elseif statementsorry, forgot the pastebin-thing.
here is the code from the sidebar that is correct:Forum: Fixing WordPress
In reply to: category elseif statementjust so you don’t think I’m completely out of my mind, here are links to screenshots of the same page with each code on it.
https://www.mindfullivingnj.com/cat9.html
https://www.mindfullivingnj.com/allcat.htmlI did notice that the link that is pulling the wrong header has the following address: https://www.mindfullivingnj.com/archives/257
and the link that is correct is https://www.mindfullivingnj.com/archives/category/events
here is the sidebar link code that is correct:
<?php $recent = new WP_Query(“cat=22&showposts=5”); while($recent->have_posts()) : $recent->the_post();?>- ” rel=”bookmark”><?php the_title(); ?>
<?php endwhile; ?>
does this shed any light at all?
Forum: Fixing WordPress
In reply to: category elseif statementwow, brilliant.
here’s a partial list:
cat-id , cat-slug , cat-name , number of posts45 , asthma , Asthma , 1
52 , body , Body , 3
42 , childrens-health , Children’s Health , 11
55 , conscious-living , Conscious Living , 10
4 , deals-to-heal , Deals to Heal , 1
29 , elimination-diet , Elimination diet , 6
22 , events , Events , 1
32 , food-allergies , Food allergies , 8
54 , green-home , Green Home , 1
37 , green-living , Green living , 7it shows that the event is in the ‘events’ category.
it is the only post in that category.
I wonder why it read the blog category when we put the other snippit in?Forum: Fixing WordPress
In reply to: category elseif statementit doesn’t give the right category.
it gave me category 9 which is the Blog category – which is why it is pulling the wrong header.I looked at the dashboard and I know the post is in category 22 (events). where does it pull the category from? – this must be wrong?
what can I check next?Forum: Fixing WordPress
In reply to: category elseif statementIt appears that the single.php document is the one that is controlling the page. Here’s the code:
https://wordpress.pastebin.com/7dBcSG4q
I’m not sure what you mean by adding an html comment to each file – do you mean create that one page and a static html and then link it up?
thanks again.
Forum: Fixing WordPress
In reply to: category elseif statementForum: Fixing WordPress
In reply to: category elseif statementthanks, again but when I put the code in the archive.php nothing happened. I then put it in the single.php and again, it’s not reading the other categories and just shows ‘Mindful Girl Blog’ at the top.
here is the page I’m speaking of:
https://mindfullivingnj.com/archives/257this page should have ‘events’ at the top.
thanks.