Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Alex Martin

    (@apalmarlak)

    Hello @girlieworks, it wasn’t unchecked indeed, good thinking!
    I didn’t think about that possibility, since the comment didn’t really looked like spam (no link, just two words and a gulible french sounding name).

    I’ll try to find how to prevent that anyway, thanks!

    Thread Starter Alex Martin

    (@apalmarlak)

    We have a custom slider. I forgot to mention that the problem is appearing on the desktop version of our website, where WP Touch shoudln’t act at all. I understand you do as you think is best on the mobile version provided by WP Touch.

    I’ve tested every other plugin, the problem appeared with this version of WP Touch only.

    Thread Starter Alex Martin

    (@apalmarlak)

    I came up with a working code that’ll show me only the post linked to a specific term and with a specific custom field value (“certification” on this example) :

    if ( have_posts() ) :
    
    	global $wp_query;
    	query_posts(
    		array_merge(
    			$wp_query->query,
    			array(
    			'meta_key'	=> 'formation_type',
    			'meta_value'	=> 'certification',
    			)
    		)
    	);
    
    	// Start the Loop.
    	while ( have_posts() ) : the_post();
    
    		get_template_part( 'content-domain' );
    
    	endwhile;
    	// Previous/next page navigation.
    	twentyfourteen_paging_nav();
    
    else :
    	// If no content, include the "No posts found" template.
    	get_template_part( 'content', 'none' );
    
    endif;

    However I need to perform the same query on the same page with my other custom fields value.

    My aim is to display a subtilte “Certifications“, followed by all the posts that have the “certification” custom field value.
    Then a subtitle called “Diploma“, followed by all the posts that have “diploma” custom field value.
    And so on.

    Any idea?

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