Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8433265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:20:24+00:00 2026-06-10T06:20:24+00:00

This is the anatomy of a wordpress plugin: .twitter-plugin |-images/ |-index.php +-README The directory

  • 0

This is the anatomy of a wordpress plugin:

.twitter-plugin
|-images/
|-index.php
+-README

The directory twitter-plugin must be placed in a well known location (wp-content/plugins) so WordPress can scan it and if it founds a README, well it’s a valid plugin. Unfortunately when I cd to plugins directory and clone a repository from Gitorious, I get:

.twitter-plugin
+-twitter-plugin
 |-images/
 |-index.php
 +-README

The plugin developer didn’t put the files straight in the top level dir, but keeps them in a subdirectory named after the project. This way WordPress can’t find the plugin (it looks for twitter/README, instead there is twitter/twitter/README). I could overcome this by cloning one directory above (in wp-content instead of wp-content/plugins) but it feels hackish, has the clear disadvantage that I’ll have to ignore all other plugins directories, plus Git will complain that the plugins/ directory already exists (so I’ll have to temporary move things around to make it work).

Is there a way to recover this situation? Am I missing something fundamental about git?

At this moment all I think I can do is init a new repository, put the files in, and try to import the history somehow. But this way I won’t be able to push to the original repository – right? – because all file paths would be different

My objective is developing the plugin, not just using it. Of course, to develop the plugin, it must be used by some WordPress installation, so it must be in the well known directory, otherwise my development WordPress installation won’t find it and I won’t be able to test my changes

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:20:26+00:00Added an answer on June 10, 2026 at 6:20 am

    Clone into a location outside your wordpress project, then symlink or copy the correct directory where it belongs, e.g.:

    $ git checkout git@wherever.org:twitter-plugin
    $ cd my-wordpress-site
    $ ln -s ../twitter-plugin/twitter-plugin ./twitter-plugin
    

    Symlinking may or may not work, since not all PHP functions follow them; if it doesn’t, try copying instead. This does mean, though, that you have to copy again when you update the git repo; you probably want to include this procedure in your deployment script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This onclick function: VVi.$row['id']..onclick = function() { alert('1'); var ResultI = '.$row['id'].'; location.href='visuals.php?ResultI=' +
I just read this: http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx I was under the impression that overwriting Object or
This works. $(document).ready(function(){ $(.items article).click(function(){ window.location=$(this).find(a).attr(href); return false; }); }); However , when the
This is my first time creating a PHP form that will run a MySQL
My vision is this-- I have an image of a human body(like an anatomy
This must be a very simple solution that has eluded me this last hour.
This is my main.xml that I use, and the two images in the myImage_Main
This partial code I hacked in to JamieMThomas's JQuery plugin that combines the Microsoft
This question is about WordPress cms. How to create a new admin user with
I have a page with this HTML: <p> <img src=images/ih01.jpg width=80 height=110 align=left />

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.