Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello I followed the recommended link as per all instructions but the problem persists, including I tested it in another browser like Firefox and the result was the same.

    Hello everyone.
    Well first of all, I do not speak English natively, I used the translator to try to communicate with you. So forgive me the words.

    But my question is this:
    In my project and I have some pages, which I want to restrict. Imagine an area of members, within that area I have pages that I do not want to be displayed, they will be displayed only to subscribers, and those who try to access this urls if they have saved and try to pass it on to other people. It re-enforces redirect to the login screen.

    What I want is to restrict the pages only to subscribers and the administrator only these two types of profile will have access.
    When I talk about plugins I do not want to use plugin to do this, since if there are inumeros plugins for this need, I want to do via code inside my functions.

    Any doubt I am available.

    Hello Jacob, in fact need not I was able to accomplish this task by studying a little more documentation related to WP_query

    And I managed to accomplish this way below:

    $ query = new WP_Query (array (‘cat’ => ‘-12, -34, -56’));
    Hug and a lot of success for you

    Thank you very much, I already posted my question in the indicated forum.

    Hugs and much success for you

    My code

    <?php include('header.php'); ?>
    	<div class="banner">
    		<div class="container">
    			<div class="row">
    				<div class="col-lg-6">
    					<h2>Acompanhe todas as noticias</h2>
    				</div>
    				<div class="col-lg-6">
    					<img />/image.jpg" alt="">
    				</div>
    			</div>
    		</div>
    	</div>
    
    	<section class="single">
    		<div class="submenu">
    			<div class="container">
    				<div class="row">
    					<div class="col-lg-12">
    						<nav>
    							<?php wp_list_categories();?>
    						</nav>	
    					</div>
    				</div>
    			</div>
    		</div>
    
    		<div class="container">
    			<div class="row">
    				<div class="col-lg-12">
    					<div class="breadcrumb">
    						<?php get_breadcrumb();?>
    					</div>
    					
    					<?php if ( have_posts() ) : ?>
    					    <?php while ( have_posts() ) : the_post(); ?>
    					       <?php the_title('<h3>','</h3>');?>
    					       <?php the_post_thumbnail('single_posts', ['class' => 'svg-clippedsingle']);?>
    					       <?php echo 
    					       			'<svg>
    										<defs>
    											<clipPath id="svgsingle">
    												<path fill="#000" d="M0,0v167.373v0.376v277.923h1099.867c20.564,0,34.156-15.344,36.887-37.82l0.055-0.925V0H0z"/>
    											</clipPath>
    										</defs>
    									</svg>'
    					       		;
    					       	?>
    					       	<?php the_content();?>		
    					    <?php endwhile; ?>
    					<?php endif; ?>
    										
    				</div>
    			</div>			
    		</div>		
    	</section>
    
    	<div class="posts">
    		<div class="container">
    			<div class="row">
    				
    				<?php
    					$args = array(
    						'cat' => 1,
    						'post_per_page' => 2
    					); 
    					$the_query = new WP_Query( $args ); ?>
    					<?php if ( $the_query->have_posts() ) : ?>
    						<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    							<div class="row notices">
    								<div class="col-lg-5">
    									<?php the_post_thumbnail('posts_anteriores', ['class' => 'svg-clipped img-responsive']);?>
    									<svg>
    										<defs>							
    											<clipPath id="svgPath">
    												<path fill="none" d="M0,0v103.822v0.377v37.82h322.058c20.564,0,34.156-15.346,36.887-37.82h0.055V0H0z"/>
    											</clipPath>
    										</defs>
    									</svg>
    								</div>
    								<div class="col-lg-5">
    									<?php the_title('<h3>','</h3>');?>
    									<a>" title="<?php the_title_attribute();?>" class="btnsimple">Leia Mais</a>
    								</div>
    							</div>
    						<?php endwhile; ?>
    						<?php wp_reset_postdata(); ?>
    					<?php else : ?>
    						<p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
    					<?php endif; ?>
    				<div class="col-lg-12">
    					<hr>
    				</div>
    			</div>
    		</div>
    	</div>
    	
    	<section class="projetos">
    		<div class="container">
    			<div class="row">
    				<div class="col-lg-4">
    					<a href="">
    						<img />/images/banner-influenza.png" class="bninfluenzap">
    					</a>
    				</div>
    				<div class="col-lg-8 text-center brand">
    					<h3>Conheça os projetos de apoio à exportação de proteínas brasileiras</h3>
    					<a href="http://www.brazilianpork.com.br/en" title="Brazilian Pork">
    						<img />/images/logotipo-brazilian-pork.svg" alt="Brazilian Pork" class="img-responsive">
    					</a>
    
    					<a href="http://" title="Brazilian Chicken">
    						<img />/images/logotipo-brazilian-chicken.svg" alt="Brazilian Chicken" class="img-responsive">
    					</a>
    
    					<a href="http://" title="Brazilian Egg">
    						<img />/images/logotipo-brazilian-egg.svg" alt="Brazilian Egg" class="img-responsive">
    					</a>
    				</div>
    			</div>
    		</div>
    	</section>
    
    <?php include('footer.php');?>
    Forum: Fixing WordPress
    In reply to: Começar do ZERO?

    Você pode utilizar o Odiin. Produzido por desenvolvedores da comunidade WordPress Brasil, tem uma documentação rica toda em português que pode lhe auxiliar.

    http://wpod.in/

    Hello thanks for your reply but I would like to add in your list the following networks that I forgot to mention too

    1-) Sina Weibo
    2-) Mixi
    3-) BlogFa
    4- Zing Me
    5-) SnapChat
    6-) QZone

    I am currently using the free version, the plugin is excellent but unfortunately for Auto-Post it is necessary to make the acquisition of PREMIUM. This is frustrating for me, because it does not solve my problem. If the auto-post was in the free option I am absolutely sure that the download number would be much bigger, and there the other options like posting groups and more pages, yes, I’m sure many users would buy it.

    Some features you could have for example and more type social networks

    Blogger, WordPress.com, MySpace, LiveJournal.

    Thank you for the opportunity to respond to you.

    Good staff found the solution was missing the xmlrpc file on my server problem solved

    Hello Byank Kov, do you, or are you sure of that? I need this confirmation a lot before making the acquisition of the theme that I will acquire.

    I await a return.

    This code, more like me to return the post of each year regarding the category that I want?

Viewing 11 replies - 1 through 11 (of 11 total)