Bryan Purcell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Content doesn't show unless logged inActually, an even better solution would be to use advanced custom fields to accomplish this. You can create field groups that will appear on taxonomy term edit pages. For items that you’d like to see on the main archive landing page, you could use their addon for global site options.
ACF will let you add all kinds of fields that you can easily get to from the templates.
The Options addon is a premium addon, but it’s definitely worth it – you can use it on unlimited sites!
Forum: Fixing WordPress
In reply to: Content doesn't show unless logged inOne thing to check might be to double check your publish status. If it’s in “protected” status, the content won’t be available if you’re logged in.
Forum: Fixing WordPress
In reply to: Content doesn't show unless logged inI’d recommend doing it the opposite way, actually. Set up an archive listing on a page template. The key here is that you overwrite the query, then reinstate it
Check out this snippet:
<div id="latest_posts" class="container-fluid"> <div class="row"> <?php $temp_query = $wp_query; $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'paged' => $paged, 'post_type' => '<yourposttype>', ); /* make a new query for the events */ $wp_query = new WP_Query( $args ); $i = 1; while ( have_posts() ) : the_post();?> the_title(); the_content(); endwhile; wp_reset_postdata(); ?> <?php if ($wp_query->max_num_pages > 1) : ?> <div class="row"> <nav class="pagination"> <?php next_posts_link(__('Older posts', 'roots')); ?> <?php previous_posts_link(__('Newer posts', 'roots')); ?> </nav> </div> <?php endif; ?> <?php $wp_query = $temp_query; ?> </div> </div>
Add this snippet to a page template, where you’d like to loop through the posts. You can take what you have in archive.php and paste it into a page template as a starting place.
let me know if you have any questions.
Forum: Fixing WordPress
In reply to: Trouble Accessing Site on Phone and Different BrowsersThe first thing i’d recommend is to back up the htaccess file, then delete it from your root directory. If the problem is, in fact, your ht access file this will allow you to get to the /wp-admin dashboard. If you can get there, go to Settings -> Permalinks, and click save on your desired setting.
Forum: Fixing WordPress
In reply to: Trouble Accessing Site on Phone and Different BrowsersOk – so the first thing you want to do is disable the caching software that’s generating this htaccess stuff – I think it’s causing problems. What caching plugins are you using on your site?
Forum: Fixing WordPress
In reply to: Terms of Use Plugin not allowing accessLogin via FTP/SFTP and delete the plugin folder located at wp-content/plugins
That should remove the plugin.
let me know if you have any questions related to connecting!
Bryan
Forum: Fixing WordPress
In reply to: $post->ID returning '1'an ancient jquery library! I’m happy to help! – If you make it to Wordcamp Chicago – high fives all around!!!
Forum: Fixing WordPress
In reply to: $post->ID returning '1'also, can you try removing
<?php include (TEMPLATEPATH . '/left_bar.php'); ?>
?Forum: Fixing WordPress
In reply to: $post->ID returning '1'I’m kinda confused about what’s going on at
echo "single-publications.php, nosidebar=" .get_field('nosidebar') ;
can you simplify this template to try to eliminate potential issues?
maybe try removing the code between
<div class="format_text">
?Forum: Fixing WordPress
In reply to: Trouble Accessing Site on Phone and Different Browserscan you paste the htaccess file into the forums? (in backticks preferably)
Forum: Fixing WordPress
In reply to: Content doesn't show unless logged inDoes it work if you use a different template? (try the default template) Is the page you’re querying visible when you’re logged out?
Forum: Fixing WordPress
In reply to: html code instead of site showing up until I go to dashboardNo problem – let me know if you have any questions. glad to help
Forum: Fixing WordPress
In reply to: Why Am I Getting ALL Pages on Every Page?are your music page and movie page using the same template? are you using custom post types for the pages?
Forum: Fixing WordPress
In reply to: html code instead of site showing up until I go to dashboardAwesome! yeah – I think there was something up with the compression feature. When you reactivate and clear the cache does the problem come back?
Forum: Fixing WordPress
In reply to: $post->ID returning '1'can you post the offending template in the forum? There’s probably something going wrong there.