Jump to content
adesouza

pockets - change slug after creating pocket posts

Recommended Posts

adesouza    0
adesouza

Hi,

 

I setup pockets, including the slug, which I changed to be 'service' and 'services'. I then made a bunch of entries.

 

However, I now realize that I would like to change the slug, so I can use the archive page which is automagically generated -but I want a different address than mysite.com/services . But changing the slug in Pagelines->Page Options doesn't seem to do anything now.

 

Do I need to remove than re-install and re-enter all the posts?

 

thanks,

 

Alex

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

It does change when you update them, this was heavily tested. If you have services as a plural, it will use services as the archive. 


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Thanks for the quick reply.

 

 

Still testing on my end, but from what I can tell, that slug is not changing for me. I see that I made the mistake of using a capital letter in the slug when I originally made it.  

 

so it's actually at mysite.com/Services

 

I changed both the singular and plural slugs to 

 

whatwedo

 

and 

 

whatwedoes

 

and I get a 404 when I visit

 

mysite.com/whatwedoes

 

or

 

mysite.com/whatwedo

 

could that have to do with the capital letter? Or will it maybe take a few mins to make the change?

 

Gonna try clearing my cache also...

 

here's a link just in case....

 

 

http://distill.staging.wpengine.com/Services

 

(this works fine)

 

 

http://distill.staging.wpengine.com/whatwedoes

 

(I get a 404)

 

thanks!

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

It doesn't matter whether you capitalize it or not the code will turn it into lowercase. I just pushed a fix that I was having issue with wpengine anyways so that will probably help your case. Also, once you change the slug, resave permalinks and clear out your cache in wpe.

 

NIck


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Awsome! Thank you. 

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

hmm, wasn't able to get it to change the slug, going to try removing and re-installing...

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

So I removed the section, it was actually in /plugins/pagelines-sections/  and in /basetheme/sections/  I deactivated it using Evan's Section Switchboard plugin, then deleted the files from my ftp. I purged the cache on wpe also. I then downloaded the new version from the store, activated it, then moved it from  /plugins/pagelines-sections/ to /basetheme/sections/ 

 

but... it shows up in the dashboard as 'Services' -not 'Pockets'  

 

Also, the changes I previously made to the slug in pagelines->page options are shown in the slug fields. (they don't match what is shown on the dashboard, they say 'what-we-do' and 'what-we-does'  

 

I made a new 'Service' post (I had deleted the posts that it was using before)  The permalink shows up as mysite.com/Services/mypost

 

If i go to mysite.com/what-we-do or mysite.com/what-we-does i get a 404.

 

So... Should I have saved permalinks again when I removed the section?

 

Or.. is there another way to more completely remove the section and do a fresh install.  Like.. so it would show up as 'Pockets' again and I can start from scratch? :)

 

Thanks for your advice!

 

A

 

 

 

 

That confused me because I figured when I removed the section, I am removing all the changes it makes. Could it 

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

oops...  random bits of my post left at the bottom :-]

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

If you remove the slugs that you set it will reset to Pockets. Try resaving the permalinks to flush that part out after changing them.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Okay, tried that, when I delete the text that was in there, the 'default text' that is show greyed out in the input box says 'Services'  tried saving permalinks and purging wpe cache. No dice.

 

Now looking into the DB to remove pockets from the taxonomy... bad idea?

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

So still working on this.

 

Would the Slug be saved in a pagelines settings .dat file?

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Also, when I install via the store its now being installed in wpcontent/plugins

 

and thus, doesn't show up in the dashboard until moved into the appropriate folder for sections... is that normal?

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Ok... got it finally!

 

when I started a completely new wp install on wpengine, imported wordpress content via .xml export file and imported pagelines settings .dat  

 

then installed pockets via store moved from wp-content/plugins/pockets to /themes/basetheme/sections/pockets

 

It still showed up with 'Services' in the dashboard menu item, and as the default entry in the site defaults slug options.

 

Following your instructions, I deleted the two slugs from the the input boxes, saved options, cleared cache in wpengine and resaved permalinks, and voila! Name changed back to pockets.

 

 

thanks again for your help!

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

oh.. yeah. It's definitely coming from the .dat file...

Share this post


Link to post
Share on other sites
adesouza    0
adesouza

Also worth noting for anybody else who wants to do this.. there are 2 places you need to change the slug. In Page Options->Site Defaults  and Page Options->Pockets Archive

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

You do not have to change it in two places. Only change it under Page Options-->Site Defaults. If you change it under Page Options-->Archive, its only affecting the archive.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • adesouza
      By adesouza
      Hey there!
       
      Getting a weird intermittent error, where about a couple of times a week the pockets archive page of a site we built for a client will not resolve and we get a 404.
       
      I can get it to work by going into the page options dashboard and changing and then unchanging the slugs, and when I save the settings it usually goes away. Makes me think that maybe there something weird going on with url rewriting?
       
      It's very weird. Its fine now as I usually get a few frantic calls from the client and then have to fix, but would appreciate any info or help. Thanks!
       
      link
    • kneops
      By kneops
      Hello Nick,
       
      I want to purchase pockets, but have two for me rather important questions about the functions.
       
      A customer likes the pockets for his site, but wants the images/gallery not to be at the bottom of the page but in first place or perhaps right behind the excerpt. Is that possible? It should be a presentation of products.
       
      Second, on the right of the images in the gallery there first is the title and underneath soms descriptive text. According to the video, that text is inserted into the caption field of the image, but does that allow line breaks? My customer should be able to add a short description, then hit enter for a new line or white line, and than add some more text. Or is the description field used of the caption field is empy?
    • oksodavid
      By oksodavid
      Hey Nick, I just wanted to check in on registering multiple post-types. Any changes afoot for Pockets/V3? 
    • caspersjan
      By caspersjan
      Dear Nick, I finally got my teeth into Pockets, having had it installed for a few months now. It looks great. And the documentation is excellent.  I could not find any mention of global settings for Pocket labels though. Is that not possible? I am trying to set up a system whereby the Pockets can be populated with content sent in by users through a form (I saw you mention Gravity in other sections, I use Formidable but I am sure they work more or less in the same way). For this, the different labels would have to be custom fields with specific names. But even if I create all the Pockets manually, it would seen useful to have a global setting for the labels, if they are to be always the same. Does this make any sense? If you think there is a way to work it out, let me know or even point me in the right direction. Thanking you, greetings and good luck. Yours faithfully, Jan.
    • anderskrus
      By anderskrus
      Hi!
       
      Since I uppgraded Pockets my "pockets" doesn't come up in the self generating archive mode. Instead it pulls previous blog posts. 
      My slug is /forfattare - authors.
       
      http://litetforlag.se/forfattare
       
      I really love this product - haven't seen anything look so good. And the archive mode is nicer then the shortcodes when I only have sex authors to show. 
       
      I really do hope that this is a bug that can be fixed. And I also keep my fingers crossed that it will be possible to have several pockets/slugs going at the same time.
×