bluedrag
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Can’t edit PHP files due to “inability to check for fatal errors”Hmm.. looking in troubleshoot mode, I am still having the issue when using the 2019 theme and disabling all plugins.
Forum: Fixing WordPress
In reply to: Can’t edit PHP files due to “inability to check for fatal errors”Thank you for the advice, this is what was found:
Forum: Fixing WordPress
In reply to: Can’t view post category pageHmm.. strangely enough this worked for the news category page (english and french) and the french artists category page.. but not the english artists category page.
Edit: Another note, setting permalinks to plain also does not fix the issue.
- This reply was modified 5 years, 4 months ago by bluedrag.
Forum: Fixing WordPress
In reply to: Just Updated from PHP5 to PHP7, having issuesAnother update: I have tried increasing my memory_limit to 256M and post_max_size 64M, this did not fix the issue
Forum: Fixing WordPress
In reply to: Just Updated from PHP5 to PHP7, having issuesAn update: I am able to update posts and pages that have been previously created. The issue is only with creating new posts and uploading new media to the media library.
Forum: Fixing WordPress
In reply to: Just Updated from PHP5 to PHP7, having issuesThanks for the info. Looks like MySQL is installed. I am seeing this on the phpinfo() page:
Client API library version mysqlnd 5.0.12-dev
I guess I am running an older version than I thought?
Forum: Fixing WordPress
In reply to: Just Updated from PHP5 to PHP7, having issuesDo you know which version of MySQL you are running on your server?
Forum: Plugins
In reply to: [Polylang] Page “wont redirect correctly” in secondary languageI’ve fixed the issue! my old qTranslate plugin was conflicting. I disabled it and found all the qTranslate functions I’d previously put in my theme templates and we’re up and running again.
Forum: Fixing WordPress
In reply to: Creating Languages in Polylang IssueI am, I have posted this there as well.
Forum: Fixing WordPress
In reply to: Changing category Archives as category titleThanks! This worked.
Forum: Plugins
In reply to: [Polylang] Changing language resets to home pageI see now that the reason this was not working properly is because my post categories were not paired with a post category in the other language. I noticed this after seeing it work properly on regular posts and pages.
Forum: Plugins
In reply to: [Polylang] Conditionally display code based on active language in templateI was able to solve this issue with the following code:
<?php if(pll_current_language() == 'en') { echo 'Only in english'; } else if(pll_current_language() == 'fr') { echo echo 'Seulment en francais'; } ?>
Forum: Developing with WordPress
In reply to: Displaying Posts in Alphabetical OrderThanks bcworkz ??
I was actually able to solve the issue by adding category_name => artists to the code:
$args = array('posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC', 'category_name' => 'artists'); $artistsPosts = get_posts($args);
Appreciate all the help!
Forum: Developing with WordPress
In reply to: Displaying Posts in Alphabetical OrderHi bcworkz,
Thank you so much for your in depth response! I am definitely on the right track now. The only issue I seem to be having is, posts from seperate categories are showing on my category page. This leaves me to believe the
if (is_category('artists'))
is not working properly. The category is called Artists (the slug is artists) Do you have any insight into why this may not be working properly?Here is the whole category.php page:
<?php /** * The template for displaying Category Archive pages. */ get_header(); ?> <h1><?php single_cat_title(); ?></h1> <div id="artist-grid" role="main"> <?php // we add this, to show all posts in our category sorted alphabetically if (is_category('artists')) { $args = array('posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC'); $artistsPosts = get_posts($args); } ?> <?php global $post; ?> <?php foreach($artistsPosts as $post) : setup_postdata($post); ?> <a class="product_thumbnail" href="<?php the_permalink() ?>"> <?php //the_post_thumbnail grabs the post's "featured image" this feature has added theme support in the child theme functions.php ?> <?php the_post_thumbnail('thumbnail', array('class' => 'thumbnail')); ?> <figcaption class="post_caption"> <h1><?php the_title(); ?></h1> </figcaption> </a> <!-- product_thumbnail --> <?php endforeach; ?> <div class="clear"></div> </div><!-- #artist-grid --> <?php get_footer(); ?>
Again, thank you for your detailed response!
Forum: Developing with WordPress
In reply to: Displaying Posts in Alphabetical OrderCould you please be more specific? Possibly give me an example of how that would work in code? I appreciate your help but programming is not my strong suit.