Title: AmmoPT's Replies | WordPress.org

---

# AmmoPT

  [  ](https://wordpress.org/support/users/ammopt/)

 *   [Profile](https://wordpress.org/support/users/ammopt/)
 *   [Topics Started](https://wordpress.org/support/users/ammopt/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ammopt/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ammopt/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ammopt/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ammopt/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ammopt/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/ammopt/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ammopt/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Custom fields in the wpcf7 form editor backend](https://wordpress.org/support/topic/custom-fields-in-the-wpcf7-form-editor-backend/)
 *  [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-fields-in-the-wpcf7-form-editor-backend/#post-6374020)
 * Hello Augusto,
 * I am also attempting this.
    I’m using ACF Pro and field group doesn’t show in
   wpcf7_contact_form creation.
 * I guess there’s nothing wrong with ACF, it’s in the rendering of the admin UI
   of Contact Form 7 that disregards metadata, I think.
 * Any update?
 * Cheers,
 * Ammo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [OAI-PMH Plugin](https://wordpress.org/support/topic/oai-pmh-plugin/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/oai-pmh-plugin/#post-5939714)
 * Hello heyhielo,
 * I haven’t found a solution per say. Turns out we redesigned our projected and
   we’re supplying the items via a standard REST API, not OAI-PMH.
    We are using
   the software DSpace as a provider.
 * Although I think OAI-PMH may be coming to WordPress soon, it is not in the scope
   of our project to develop the plug-in ourselves.
 * Best of luck.
 * Regards,
 * Ammo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP REST API (WP API)] WordPress WP API Extending – 404 on Endpoints](https://wordpress.org/support/topic/wordpress-wp-api-extending-404-on-endpoints/)
 *  [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wordpress-wp-api-extending-404-on-endpoints/#post-5995043)
 * Hi yargnawh,
 * You have probably solved the problem by now, but here goes.
    I have not used 
   this plug-in (yet) but planning on using in a near future.
 * I’m pretty sure the plug-in requires the use of pretty links to work.
 * In that case, you’ll have to have mod rewrite active active on your server and
   change the wordpress permalink structure to [http://www.sitename.com/postname](http://www.sitename.com/postname).
 * Hope it helps out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Edit Author Slug] Author base is not working](https://wordpress.org/support/topic/author-base-is-not-working/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years ago](https://wordpress.org/support/topic/author-base-is-not-working/#post-5756184)
 * Hello Brandon!
 * Yes! As a matter of fact I am.
    Although right now I’m unable to access it. I’ll
   do it as soon as possible and let you know on an update.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [OAI-PMH Plugin](https://wordpress.org/support/topic/oai-pmh-plugin/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/oai-pmh-plugin/#post-5939352)
 * Hello Jan,
 * Thank you for moving the post to the appropriate area, I apologise since I don’t
   participate in forums as much as I would like.
 * OAI-PMH is an international standard protocol used for metadata harvesting via
   the web.
    It’s used by librabries, museum, archives and all sorts of institutions
   to provide their data to others, with interoperability in mind.
 * OAI-PMH [example](http://www.jbi.hio.no/bibin/dill/summer_school/2011/oai_architecture.png)
   image.
 * There are 2 actors in an OAI-PMH system:
    1) OAI-PMH data providers 2) OAI-PMH
   harvesters
 * The first actor needs to implement an OAI-PMH repository, so harvester can access
   the base url of said repository.
    The second actor needs to implement OAI-PMH
   harvesting, in order to define the arguments in the request to the provider.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] Security related issue](https://wordpress.org/support/topic/security-related-issue/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/security-related-issue/#post-5930144)
 * Unfourtanetly I am not able to duplicate the risks the security software is firing.
   The form seems to act as expected, not printing any error messages and bypassing
   sql injection attempts.
 * Anyone?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[xili-language] Where is the documentation and/or examples?](https://wordpress.org/support/topic/where-is-the-documentation-andor-examples/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/where-is-the-documentation-andor-examples/#post-5809634)
 * After a couple of battles I managed to put it to work the way I wanted only to
   see that to customize menus is very complex, at least using a custom child theme
   as I am.
 * I decided to go with Polylang, it seems to suit my needs better.
 * Anyhow, thank you for your support and I wish you to keep up the good work.
 * Regards,
 * Ammo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[xili-language] Where is the documentation and/or examples?](https://wordpress.org/support/topic/where-is-the-documentation-andor-examples/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/where-is-the-documentation-andor-examples/#post-5809620)
 * Hello Michel!
    Thank you so much for replying. The only pseudo-useful information
   I’ve found was this: [http://dev.xiligroup.com/?p=1432](http://dev.xiligroup.com/?p=1432)
 * But with so few pratical examples its hard to know what exactly the filter does.
 * About the second part of my question that you didn’t understand, I’ll try to 
   explain better:
    1 – I activate the plug-in, no content is translated; 2 – I 
   put in the nav_menu the language picker **Nav Menu Singular (w/o curr. lang and
   if exists)** 3 – I translate a page and check if it is really working. It is.
 * Problem: My category pages show the language picker even though I didnt translate
   them.
 * Another question:
    Just to confirm, I want to customize the language picker, 
   is xili_nav_lang_list the correct filter to use?
 * Thank you.
 * Ammo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] Multisite – Configurations only work on main site](https://wordpress.org/support/topic/multisite-configurations-only-work-on-main-site/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-configurations-only-work-on-main-site/#post-5645269)
 * Remember, this is fresh installation of plug-in and I only tweaked on the ‘User
   Login’ panel.
 * Could it be some misconfiguration on the multi-site install? Everything is working
   as intended up untill now. Multi-site wise.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] Multisite – Configurations only work on main site](https://wordpress.org/support/topic/multisite-configurations-only-work-on-main-site/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multisite-configurations-only-work-on-main-site/#post-5645268)
 * Hello!
    Thank you for your reply.
 * Yes I made sure I configured it correctly on the subsite.
    In fact, I have the
   same exact configurations on ‘User Login’ for both my main site and my subsite.
 * Additional info:
 * 1) The ‘display generic error message’, for example, is working on my subsite
   as intended, just the lockout isn’t working;
 * 2) I can get IP locked when failing to authenticate on my main site, but can 
   still log into my subsite (same account) while the account is locked on the main
   site.
 * Any further help would be much appreciated.
 * Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts 2 Posts] Change input term when connecting one post to another](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/#post-5360488)
 * One thing I hate is bumping into a rare problem on the internet that someone 
   else has bumped into and the thread has died with no answer.
    SO After several
   hours of trial and error and investigation, I finally solved my problem.
 * This is how the constructor looks like in side-user.php:
 *     ```
       function __construct( $query_vars ) {
       		$this->query_vars = $query_vars;
               $this->query_vars['orderby'] = 'display_name';
               $this->query_vars['order'] = 'ASC';
               $this->query_vars['meta_query'] = array(
                   array(
                       'key'     => 'nickname',
                       'value'   => $_REQUEST['s'],
                       'compare' => 'LIKE'
                   ));
       }
       ```
   
 * This is how the function abstract_query looks like in directed-connection-type:
 *     ```
       private function abstract_query( $qv, $which, $output = 'abstract' ) {
       		$side = $this->get( $which, 'side' );
   
       		$qv = $this->get_final_qv( $qv, $which );
   
               unset($qv['search']);
   
               $query = $side->do_query( $qv );
   
       		if ( 'raw' == $output )
       			return $query;
   
       		return $side->get_list( $query );
       	}
       ```
   
 * The key here is `unset($qv['search']);`.
    The meta_query was absolutely correct
   and functional but it turns out it was intersecting with the original code. Example:
   when typing ‘a’ in the input field, the results had to have ‘a’ in user_login
   AND in the nickname.
 * I hope this helps someone who eventually runs into something like this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts 2 Posts] Change input term when connecting one post to another](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/#post-5360433)
 * By altering the constructor in file side-user.php I’ve managed to somewhat accomplish
   what I wanted, but not quite.
    Using search_columns I can define what fields 
   to be searched on, however I cannot use display_name or first_name since that
   requires a meta_query.
 *     ```
       function __construct( $query_vars ) {
       	$this->query_vars = $query_vars;
               $this->query_vars['orderby'] = 'display_name';
               $this->query_vars['order'] = 'ASC';
               $this->query_vars['search_columns'] = array('ID', 'user_login', 'user_email', 'user_nicename');
           }
       ```
   
 * I know how meta queries work, however I need to define the value of the meta_key
   and I have been unsuccessfull so far as to retrieve the content from the input
   field.
 * This is an example of what I’ve tried so far:
 *     ```
       $this->query_vars['meta_key'] = 'nickname';
       $this->query_vars['meta_value'] = $_REQUEST['s'];
       $this->query_vars['meta_compare'] = 'LIKE';
       ```
   
 * Any help?
    Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts 2 Posts] Change input term when connecting one post to another](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/change-input-term-when-connecting-one-post-to-another/#post-5360394)
 * I understand Scribu is no longer supporting ‘Posts 2 Posts’.
    I’m asking someone
   who has altered the core in order to meet their needs.
 * So far I’ve been going through files item-user.php, side-user.php and query-user.
   php but I’m struggling to find the code I need to alter in order to search the
   users by nicename or first_name instead of user_login.
 * Any light on the subject would be greatly appreaciated.
 * Thank you.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress – 'Read more' link on static page shows but doesn't work](https://wordpress.org/support/topic/wordpress-read-more-link-on-static-page-shows-but-doesnt-work/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-read-more-link-on-static-page-shows-but-doesnt-work/#post-5128551)
 * Hey alchymyth!
    I am using <!–nextpage–> someplace else in my website and it 
   works fine with wp_link_pages(). The <!–more–> I am looking for corresponds to
   the <!–more–> generated by the button ‘Insert “read more” tag’ in the post creation.
   After some investigation I ended up with the code posted above but still it doesn’t
   work. Any other suggestion? Thank you.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress – 'Read more' link on static page shows but doesn't work](https://wordpress.org/support/topic/wordpress-read-more-link-on-static-page-shows-but-doesnt-work/)
 *  Thread Starter [AmmoPT](https://wordpress.org/support/users/ammopt/)
 * (@ammopt)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-read-more-link-on-static-page-shows-but-doesnt-work/#post-5128546)
 * Hello Jose Castaneda
    It’s a custom theme and I was inserted in the project after
   the kick-off. I’m pretty sure it has nothing to do with the plug-ins I am using.
   Any other possible cause for this problem? Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/ammopt/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ammopt/replies/page/2/?output_format=md)